function taxtocomma_field_formatter_info in Taxonomy Formatter 7
Implements hook_field_formatter_info().
File
- ./
taxonomy_formatter.module, line 10 - adds a formatter for taxonomy terms with options to specify element type, wrapper type, and separators
Code
function taxtocomma_field_formatter_info() {
return array(
'taxonomy_term_reference_csv' => array(
'label' => t('Comma Separated'),
'field types' => array(
'taxonomy_term_reference',
),
'settings' => array(
'links_option' => FALSE,
'separator_option' => ', ',
'element_option' => '- None -',
'wrapper_option' => '- None -',
'element_class' => '',
'wrapper_class' => '',
),
),
);
}