You are here

function field_group_field_formatter_options in Field Group 7

Same name and namespace in other branches
  1. 8 includes/helpers.inc \field_group_field_formatter_options()
  2. 7.2 field_group.field_ui.inc \field_group_field_formatter_options()

Return an array of field_group_formatter options.

2 calls to field_group_field_formatter_options()
field_group_disabled_groups_overview in ./field_group.field_ui.inc
Show an overview of all the disabled fieldgroups, and make it possible to activate them again.
field_group_field_ui_overview_form_alter in ./field_group.field_ui.inc
Function to alter the fields overview and display overview screen.

File

./field_group.field_ui.inc, line 342
Field_group.field_ui.inc is a file that contains most functions needed on the Fields UI Manage forms (display and fields).

Code

function field_group_field_formatter_options($type) {
  $options =& drupal_static(__FUNCTION__);
  if (!isset($options)) {
    $options = array();
    $field_group_types = field_group_formatter_info();
    foreach ($field_group_types[$type] as $name => $field_group_type) {
      $options[$name] = $field_group_type['label'];
    }
  }
  return $options;
}