function hs_menu_admin_settings in Hierarchical Select 7.3
Same name and namespace in other branches
- 5.3 modules/hs_menu.module \hs_menu_admin_settings()
- 6.3 modules/hs_menu.module \hs_menu_admin_settings()
Form definition; admin settings.
1 string reference to 'hs_menu_admin_settings'
- hs_menu_menu in modules/
hs_menu.module - Implements of hook_menu().
File
- modules/
hs_menu.module, line 99 - Implementation of the Hierarchical Select API for the Menu module.
Code
function hs_menu_admin_settings() {
$form['hs_menu_resizable'] = array(
'#type' => 'radios',
'#title' => t('Resizable'),
'#description' => t("When enabled, a handle appears below the Hierarchical Select to allow\n the user to dynamically resize it. Double clicking will toggle between\n the smallest and a sane 'big size'."),
'#options' => array(
0 => t('Disabled'),
1 => t('Enabled'),
),
'#default_value' => variable_get('hs_menu_resizable', 1),
);
$form['hs_menu_content_types'] = array(
'#type' => 'checkboxes',
'#title' => t('Content types'),
'#description' => t("Select the content types to use Hierarchical Select Menu on. If no content types are selected, then it will apply to all content types."),
'#options' => node_type_get_names(),
'#default_value' => variable_get('hs_menu_content_types', array()),
);
return system_settings_form($form);
}