You are here

function faqfield_field_formatter_info in FAQ Field 7

Implements hook_field_formatter_info().

File

./faqfield.module, line 333
FAQ Field Provides a field for frequently asked questions.

Code

function faqfield_field_formatter_info() {
  return array(
    // This formatter uses jQuery accordion widget.
    'faqfield_accordion' => array(
      'label' => t('Accordion'),
      'field types' => array(
        'faqfield',
      ),
      'settings' => array(
        'active' => 0,
        'autoHeight' => TRUE,
        'collapsible' => FALSE,
        'event' => 'click',
      ),
    ),
    // This formatter just displays the FAQ content as simple text.
    'faqfield_simple_text' => array(
      'label' => t('Simple text (themeable)'),
      'field types' => array(
        'faqfield',
      ),
    ),
    // This formatter displays the FAQ content as definition list.
    'faqfield_definition_list' => array(
      'label' => t('Definition list'),
      'field types' => array(
        'faqfield',
      ),
    ),
    // This formatter displays the FAQ content as anchors and text.
    'faqfield_anchor_list' => array(
      'label' => t('Anchor list and text'),
      'field types' => array(
        'faqfield',
      ),
      'settings' => array(
        'anchor-list-type' => 'ul',
      ),
    ),
  );
}