function field_group_formatter_info in Field Group 7.2
Same name and namespace in other branches
- 7 field_group.module \field_group_formatter_info()
Function to retrieve all format possibilities for the fieldgroups.
6 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.
- field_group_field_ui_form_params in ./
field_group.field_ui.inc - Helper function to get the form parameters to use while building the fields and display overview form.
- field_group_formatter_settings_update in ./
field_group.field_ui.inc - Update handler for field_group configuration settings.
File
- ./
field_group.module, line 1577 - 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;
}