function defaultconfig_defaultconfig_field_group_info_alter in Default config 7
Implements defaultconfig_field_group_info_alter(). We need to change the structure a bit to support field groups.
File
- ./
defaultconfig.module, line 589 - main module file.
Code
function defaultconfig_defaultconfig_field_group_info_alter(&$defaults) {
ctools_include('export');
foreach ($defaults as $name => $default) {
// We need to put the everything in data directly
// on the object to avoid failures when importing.
// @see field_group_pack()
$default->label = $default->data['label'];
$default->weight = $default->data['weight'];
$default->children = $default->data['children'];
$default->collapsible = 0;
$default->collapsed = 0;
$default->format_type = !empty($default->data['format_type']) ? $default->data['format_type'] : 'fieldset';
$default->export_type = EXPORT_IN_CODE;
if (isset($default->data['format_settings'])) {
$default->format_settings = $default->data['format_settings'];
}
}
}