function textformatter_textformatter_field_info in Text list formatter 8.2
Same name and namespace in other branches
- 7 textformatter.module \textformatter_textformatter_field_info()
Implements hook_textformatter_field_info().
File
- ./
textformatter.module, line 60 - Provide a field formatter to render values as HTML or comma-separated lists.
Code
function textformatter_textformatter_field_info() {
$info = array();
$info['text'] = array(
'fields' => array(
'text',
'text_long',
'text_with_summary',
),
'callback' => 'textformatter_text_field_create_list',
);
$info['number'] = array(
'fields' => array(
'number_integer',
'number_decimal',
'number_float',
),
);
$info['list'] = array(
'fields' => array(
'list_float',
'list_integer',
'list_text',
),
'callback' => 'textformatter_list_field_create_list',
);
$info['taxonomy'] = array(
'fields' => array(
'taxonomy_term_reference',
),
'callback' => 'textformatter_taxonomy_field_create_list',
);
return $info;
}