function _aggregator_characters

Creates display text for teaser length option values.

Callback for drupal_map_assoc() within aggregator_form_aggregator_admin_form_alter().

Parameters

$length: The desired length of teaser text, in bytes.

Return value

A translated string explaining the teaser string length.

1 string reference to '_aggregator_characters'
aggregator_form_aggregator_admin_form_alter in modules/aggregator/aggregator.processor.inc
Implements hook_form_aggregator_admin_form_alter().

File

modules/aggregator/aggregator.processor.inc, line 141

Code

function _aggregator_characters($length) {
    return $length == 0 ? t('Unlimited') : format_plural($length, '1 character', '@count characters');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.