function field_formatter_filter_field_formatter_info in Field Formatter Filter 7
Advertises a new type of text display : 'Remainder after trimming'.
Implements hook_field_formatter_info().
File
- ./
field_formatter_filter.module, line 140 - Allows different text format filters to be applied as part of the field formatter settings for text fields.
Code
function field_formatter_filter_field_formatter_info() {
return array(
// The 'remainder after trimming' field formatter for text_with_summary
// is the complement of 'summary or trimmed'.
// It chops off the teaser and shows what is left.
'text_remainder_after_trimming' => array(
'label' => t('Remainder after trimming'),
'field types' => array(
'text_with_summary',
),
'settings' => array(
'trim_length' => 600,
),
),
);
}