1 field_group.groups.inc _field_group_field_group_formatter_info()

Field group formatters.

See also

field_group_field_group_formatter_info()

File

core/modules/field_group/field_group.groups.inc, line 12
Defines some field group types.

Code

function _field_group_field_group_formatter_info() {

  return array(
    'form' => array(
      'html-element' => array(
        'label' => t('HTML element'),
        'description' => t('This field group renders the inner content in a HTML element with classes and attributes.'),
        'instance_settings' => array(
          'description' => '',
          'wrapper' => '', 'wrapper_other' => '', 'show_label' => 0,
          'label_element' => 'h2', 'label_element_other' => '',
          'classes' => '', 'attributes' => '',
          'required_fields' => 1, 'id' => '',
        ),
      ),
      'fieldset' => array(
        'label' => t('Fieldset'),
        'description' => t('This field group 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,
          'id' => '',
        ),
        'default_formatter' => 'open',
      ),
      'details' => array(
        'label' => t('Details'),
        'description' => t('This field group renders the inner content in a Details element with the title as summary.'),
        'format_types' => array('open', 'closed'),
        'instance_settings' => array(
          'description' => '', 'classes' => '', 'required_fields' => 1,
          'id' => '', 'label_element' => 'span', 'name' => '',
        ),
        'default_formatter' => 'closed',
      ),
      'tabs' => array(
        'label' => t('Vertical tabs group'),
        'description' => t('This field group renders child groups in its own vertical tabs wrapper.'),
        'instance_settings' => array('classes' => '', 'id' => ''),
      ),
      'tab' => array(
        'label' => t('Vertical tab'),
        'description' => t('This field group 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',
      ),
    ),
    'display' => array(
      'html-element' => array(
        'label' => t('HTML element'),
        'description' => t('This field group renders the inner content in a HTML element with classes and attributes.'),
        'instance_settings' => array(
          'description' => '',
          'wrapper' => '', 'wrapper_other' => '', 'show_label' => 0,
          'label_element' => 'h2', 'label_element_other' => '',
          'classes' => '', 'attributes' => '',
          'required_fields' => 1, 'id' => '',
        ),
      ),
      'fieldset' => array(
        'label' => t('Fieldset'),
        'description' => t('This field group renders the inner content in a fieldset with the title as legend.'),
        'format_types' => array('open', 'collapsible', 'collapsed'),
        'instance_settings' => array(
          'description' => '', 'classes' => '', 'id' => '',
        ),
        'default_formatter' => 'open',
      ),
      'details' => array(
        'label' => t('Details'),
        'description' => t('This field group renders the inner content in a Details element with the title as summary.'),
        'format_types' => array('open', 'closed'),
        'instance_settings' => array(
          'description' => '', 'label_element' => 'span', 'classes' => '',
          'required_fields' => 1, 'id' => '', 'name' => '',
        ),
        'default_formatter' => 'closed',
      ),
      'tabs' => array(
        'label' => t('Vertical tabs group'),
        'description' => t('This field group renders child groups in its own vertical tabs wrapper.'),
        'instance_settings' => array('classes' => '', 'id' => ''),
      ),
      'tab' => array(
        'label' => t('Vertical tab'),
        'description' => t('This field group renders the content in a fieldset, part of vertical tabs group.'),
        'format_types' => array('open', 'closed'),
        'instance_settings' => array('description' => '', 'classes' => ''),
        'default_formatter' => 'closed',
      ),
    ),
  );
}