function text_field_formatter_settings_summary
Implements hook_field_formatter_settings_summary().
File
-
modules/
field/ modules/ text/ text.module, line 243
Code
function text_field_formatter_settings_summary($field, $instance, $view_mode) {
$display = $instance['display'][$view_mode];
$settings = $display['settings'];
$summary = '';
if (strpos($display['type'], '_trimmed') !== FALSE) {
$summary = t('Trimmed limit: @trim_length characters', array(
'@trim_length' => $settings['trim_length'],
));
}
return $summary;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.