You are here

function field_group_field_group_formatter_info in Field Group 7.2

Same name and namespace in other branches
  1. 7 field_group.module \field_group_field_group_formatter_info()

Implements hook_field_group_formatter_info().

File

./field_group.module, line 272
Fieldgroup module.

Code

function field_group_field_group_formatter_info() {
  $info = array(
    'form' => array(
      'div' => array(
        'label' => t('Div'),
        'description' => t('This fieldgroup renders the inner content in a simple div with the title as legend.'),
        'format_types' => array(
          'open',
          'collapsible',
          'collapsed',
        ),
        'instance_settings' => array(
          'description' => '',
          'show_label' => 1,
          'label_element' => 'h3',
          'effect' => 'none',
          'speed' => 'fast',
          'classes' => '',
          'required_fields' => 1,
          'id' => '',
        ),
        'default_formatter' => 'open',
      ),
      'html5' => array(
        'label' => t('HTML5'),
        'description' => t('This fieldgroup renders the inner content in a semantic HTML5 wrapper'),
        'instance_settings' => array(
          'wrapper' => '',
          'classes' => '',
        ),
      ),
      'fieldset' => array(
        'label' => t('Fieldset'),
        'description' => t('This fieldgroup renders the inner content in a fieldset with the title as legend.'),
        'format_types' => array(
          'open',
          'collapsible',
          'collapsed',
        ),
        'instance_settings' => array(
          'description' => '',
          'classes' => '',
          'required_fields' => 1,
        ),
        'default_formatter' => 'collapsible',
      ),
      'tabs' => array(
        'label' => t('Vertical tabs group'),
        'description' => t('This fieldgroup renders child groups in its own vertical tabs wrapper.'),
        'instance_settings' => array(
          'classes' => '',
        ),
      ),
      'tab' => array(
        'label' => t('Vertical tab'),
        'description' => t('This fieldgroup renders the content in a fieldset, part of vertical tabs group.'),
        'format_types' => array(
          'open',
          'closed',
        ),
        'instance_settings' => array(
          'description' => '',
          'classes' => '',
          'required_fields' => 1,
        ),
        'default_formatter' => 'closed',
      ),
      'multipage-group' => array(
        'label' => 'Multipage group',
        'description' => t('This fieldgroup renders groups on separate pages.'),
        'instance_settings' => array(
          'classes' => '',
          'page_header' => 3,
          'move_additional' => 1,
          'page_counter' => 1,
          'move_button' => 0,
        ),
      ),
      'multipage' => array(
        'label' => t('Multipage'),
        'format_types' => array(
          'start',
          'no-start',
        ),
        'description' => t('This fieldgroup renders the content in a page.'),
        'default_formatter' => 'no-start',
        'instance_settings' => array(
          'description' => '',
          'classes' => '',
          'required_fields' => 1,
        ),
      ),
      'accordion' => array(
        'label' => t('Accordion group'),
        'description' => t('This fieldgroup renders child groups as jQuery accordion.'),
        'instance_settings' => array(
          'effect' => 'none',
          'classes' => '',
        ),
      ),
      'accordion-item' => array(
        'label' => t('Accordion item'),
        'format_types' => array(
          'open',
          'closed',
        ),
        'description' => t('This fieldgroup renders the content in a div, part of accordion group.'),
        'default_formatter' => 'closed',
        'instance_settings' => array(
          'description' => '',
          'classes' => '',
          'required_fields' => 1,
        ),
      ),
    ),
    'display' => array(
      'div' => array(
        'label' => t('Div'),
        'description' => t('This fieldgroup renders the inner content in a simple div with the title as legend.'),
        'format_types' => array(
          'open',
          'collapsible',
          'collapsed',
        ),
        'instance_settings' => array(
          'description' => '',
          'show_label' => 1,
          'label_element' => 'h3',
          'effect' => 'none',
          'speed' => 'fast',
          'classes' => '',
        ),
        'default_formatter' => 'collapsible',
      ),
      'html5' => array(
        'label' => t('HTML5'),
        'description' => t('This fieldgroup renders the inner content in a semantic HTML5 wrapper'),
        'instance_settings' => array(
          'wrapper' => '',
          'classes' => '',
        ),
      ),
      'fieldset' => array(
        'label' => t('Fieldset'),
        'description' => t('This fieldgroup renders the inner content in a fieldset with the title as legend.'),
        'format_types' => array(
          'open',
          'collapsible',
          'collapsed',
        ),
        'instance_settings' => array(
          'description' => '',
          'classes' => '',
        ),
        'default_formatter' => 'collapsible',
      ),
      'tabs' => array(
        'label' => t('Vertical tabs group'),
        'description' => t('This fieldgroup renders child groups in its own vertical tabs wrapper.'),
        'instance_settings' => array(
          'classes' => '',
        ),
      ),
      'tab' => array(
        'label' => t('Vertical tab'),
        'description' => t('This fieldgroup renders the content in a fieldset, part of vertical tabs group.'),
        'format_types' => array(
          'open',
          'closed',
        ),
        'instance_settings' => array(
          'description' => '',
          'classes' => '',
        ),
        'default_formatter' => 'closed',
      ),
      'accordion' => array(
        'label' => t('Accordion group'),
        'description' => t('This fieldgroup renders child groups as jQuery accordion.'),
        'instance_settings' => array(
          'description' => '',
          'classes' => '',
        ),
      ),
      'accordion-item' => array(
        'label' => t('Accordion item'),
        'format_types' => array(
          'open',
          'closed',
        ),
        'description' => t('This fieldgroup renders the content in a div, part of accordion group.'),
        'instance_settings' => array(
          'classes' => '',
        ),
        'default_formatter' => 'closed',
      ),
    ),
  );

  // Extra format types derived from elements provided by elements module.
  if (module_exists('elements')) {
    $info['form']['htabs'] = array(
      'label' => 'Horizontal tabs group',
      'description' => t('This fieldgroup renders child groups in its own horizontal tabs wrapper.'),
      'instance_settings' => array(
        'classes' => '',
      ),
    );
    $info['form']['htab'] = array(
      'label' => t('Horizontal tab item'),
      'format_types' => array(
        'open',
        'closed',
      ),
      'description' => t('This fieldgroup renders the content in a fieldset, part of horizontal tabs group.'),
      'default_formatter' => 'closed',
      'instance_settings' => array(
        'description' => '',
        'classes' => '',
        'required_fields' => 1,
      ),
    );
    $info['display']['htabs'] = array(
      'label' => 'Horizontal tabs group',
      'description' => t('This fieldgroup renders child groups in its own horizontal tabs wrapper.'),
      'instance_settings' => array(
        'classes' => '',
      ),
    );
    $info['display']['htab'] = array(
      'label' => t('Horizontal tab item'),
      'format_types' => array(
        'open',
        'closed',
      ),
      'description' => t('This fieldgroup renders the content in a fieldset, part of horizontal tabs group.'),
      'instance_settings' => array(
        'description' => '',
        'classes' => '',
      ),
      'default_formatter' => 'closed',
    );
  }
  return $info;
}