function field_group_formatter_info in Field Group 7
Same name and namespace in other branches
- 7.2 field_group.module \field_group_formatter_info()
Function to retrieve all format possibilities for the fieldgroups.
5 calls to field_group_formatter_info()
- field_group_field_formatter_options in ./
field_group.field_ui.inc - Return an array of field_group_formatter options.
- field_group_field_group_format_settings in ./
field_group.module - Implements hook_field_group_format_settings(). If the group has no format settings, default ones will be added. @params Object $group The group object.
- field_group_field_overview_submit in ./
field_group.field_ui.inc - Submit handler for the overview screens.
- hook_field_group_format_settings in ./
field_group.api.php - Implements hook_field_group_format_settings().
- _field_group_get_default_formatter_settings in ./
field_group.module - Get the default formatter settings for a given formatter and a mode.
File
- ./
field_group.module, line 1884 - Fieldgroup module.
Code
function field_group_formatter_info($display_overview = FALSE) {
$cache =& drupal_static(__FUNCTION__, array());
if (empty($cache)) {
if ($cached = cache_get('field_group_formatter_info', 'cache_field')) {
$formatters = $cached->data;
}
else {
$formatters = array();
$formatters += module_invoke_all('field_group_formatter_info');
$hidden_region = array(
'label' => '<' . t('Hidden') . '>',
'description' => '',
'format_types' => array(),
'instance_settings' => array(),
'default_formatter' => '',
);
//$formatters['form']['hidden'] = $hidden_region;
$formatters['display']['hidden'] = $hidden_region;
cache_set('field_group_formatter_info', $formatters, 'cache_field');
}
$cache = $formatters;
}
return $cache;
}