You are here

function cshs_field_formatter_info in Client-side Hierarchical Select 7

Implements hook_field_formatter_info().

File

./cshs.formatter.inc, line 11
All implementations of field formatters.

Code

function cshs_field_formatter_info() {
  return array(
    'cshs_term_reference_hierarchical_text' => array(
      'label' => t('Full hierarchy'),
      'field types' => array(
        'taxonomy_term_reference',
      ),
      'settings' => array(
        'linked' => FALSE,
        'separator' => ' » ',
      ),
    ),
    'cshs_term_reference_group_by_root' => array(
      'label' => t('Hierarchy grouped by root'),
      'field types' => array(
        'taxonomy_term_reference',
      ),
      'settings' => array(
        'linked' => FALSE,
        'separator' => ' » ',
      ),
    ),
    'cshs_term_reference_flexible_hierarchy' => array(
      'label' => t('Flexible hierarchy'),
      'description' => t('Allows to specify the output with tokens.'),
      'field types' => array(
        'taxonomy_term_reference',
      ),
      'settings' => array(
        'linked' => FALSE,
        'format' => '[term:name]',
      ),
    ),
  );
}