You are here

function field_group_field_formatter_options in Field Group 7.2

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

Return an array of field_group_formatter options.

1 call to field_group_field_formatter_options()
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 309
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;
}