function vertical_tabs_settings_form in Vertical Tabs 6
2 string references to 'vertical_tabs_settings_form'
- vertical_tabs_menu in ./
vertical_tabs.module - Implements hook_menu().
- vertical_tabs_update_6100 in ./
vertical_tabs.install - Reduce the module weight and remove the form settings variable.
File
- ./
vertical_tabs.admin.inc, line 3
Code
function vertical_tabs_settings_form() {
$form['vertical_tabs_default'] = array(
'#type' => 'checkbox',
'#title' => t('Include new fieldsets in vertical tabs by default.'),
'#default_value' => variable_get('vertical_tabs_default', 1),
);
$form['vertical_tabs_minimum'] = array(
'#type' => 'select',
'#title' => t('Minimum number of tabified fieldsets to show vertical tabs'),
'#description' => t('Non-tabified fieldsets do not count towards this minimum.'),
'#options' => array(
1 => t('No minimum'),
) + drupal_map_assoc(range(2, 10)),
'#default_value' => variable_get('vertical_tabs_minimum', 1),
);
$form['vertical_tabs_node_type_settings'] = array(
'#type' => 'checkbox',
'#title' => t('Expose vertical tabs selection on the edit content type forms.'),
'#description' => t('This feature will not work when adding a new content type and may not detect some fieldsets.'),
'#default_value' => variable_get('vertical_tabs_node_type_settings', 0),
);
return system_settings_form($form);
}