You are here

function field_group_default_settings in Content Construction Kit (CCK) 6.2

Same name and namespace in other branches
  1. 6.3 modules/fieldgroup/fieldgroup.module \field_group_default_settings()
1 call to field_group_default_settings()
fieldgroup_field_overview_form_submit in modules/fieldgroup/fieldgroup.module

File

modules/fieldgroup/fieldgroup.module, line 500
Create field groups for CCK fields.

Code

function field_group_default_settings($group_type) {
  $settings = array(
    'form' => array(
      'style' => 'fieldset',
      'description' => '',
    ),
    'display' => array(
      'description' => '',
      'label' => 'above',
    ),
  );
  module_load_include('inc', 'content', 'includes/content.admin');
  foreach (array_keys(content_build_modes()) as $key) {
    $settings['display'][$key]['format'] = 'fieldset';
    $settings['display'][$key]['exclude'] = 0;
  }

  // Allow other modules to add new default settings.
  $settings = array_merge($settings, module_invoke_all('fieldgroup_default_settings', $group_type));
  return $settings;
}