function _aggregator_characters

_aggregator_characters($length)

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.

File

modules/aggregator/aggregator.processor.inc, line 141
Processor functions for the aggregator module.

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!aggregator!aggregator.processor.inc/function/_aggregator_characters/7.x