function improved_multi_select_admin in Improved Multi Select 7
Same name and namespace in other branches
- 6 improved_multi_select.module \improved_multi_select_admin()
- 7.2 improved_multi_select.module \improved_multi_select_admin()
Administration settings page.
1 string reference to 'improved_multi_select_admin'
- improved_multi_select_menu in ./
improved_multi_select.module - Implements hook_menu().
File
- ./
improved_multi_select.module, line 54 - The improved_multi_select module main php code.
Code
function improved_multi_select_admin($form) {
$form['improved_multi_select:isall'] = array(
'#type' => 'checkbox',
'#title' => t('Replace all multi-select lists'),
'#default_value' => variable_get('improved_multi_select:isall', FALSE),
);
$form['improved_multi_select:url'] = array(
'#type' => 'textarea',
'#title' => t('Replace multi-select lists on specific pages'),
'#description' => t("Specify pages by using their paths. Enter one path per line. The '*' character is a wildcard. Example paths are %blog for the blog page and %blog-wildcard for every personal blog. %front is the front page.", array(
'%blog' => 'blog',
'%blog-wildcard' => 'blog/*',
'%front' => '<front>',
)),
'#default_value' => variable_get('improved_multi_select:url', ''),
);
$form['improved_multi_select:selectors'] = array(
'#type' => 'textarea',
'#title' => t('Replace multi-select with specified selectors'),
'#description' => t('Enter jQuery selectors (one selector per line). Example: select[multiple]'),
'#default_value' => variable_get('improved_multi_select:selectors', ''),
);
return system_settings_form($form);
}