function highlight_admin_settings in Highlight 5
Same name and namespace in other branches
- 6 highlight.module \highlight_admin_settings()
- 7 highlight.module \highlight_admin_settings()
Implementation of admin settings
1 string reference to 'highlight_admin_settings'
- highlight_menu in ./
highlight.module - Implementation of hook_menu
File
- ./
highlight.module, line 72
Code
function highlight_admin_settings() {
$form['highlight'] = array(
'#type' => 'fieldset',
'#title' => t('Search Highlight Configuration'),
);
$form['highlight']['hl_replace'] = array(
'#type' => 'textfield',
'#title' => t('Replacement string'),
'#default_value' => variable_get('hl_replace', '<strong class="highlight">%key%</strong>'),
'#description' => t('This string will be used to replace the found value <strong>key</strong> with. <strong>%key%</strong> is variable.'),
);
$form['highlight']['hl_allow_external'] = array(
'#type' => 'checkbox',
'#title' => t('Allow external sites to highlight'),
'#default_value' => variable_get('hl_allow_external', false),
'#description' => t('If this is checked, sites out side of yours will be able to highlight items on your site. <br /> <em>Defaults to off</em>'),
);
$form['highlight']['sh_use_css'] = array(
'#type' => 'checkbox',
'#title' => t('Use Module CSS'),
'#default_value' => variable_get('sh_use_css', true),
'#description' => t('If you have customized your CSS for the <em>highlight</em> class, uncheck this box to prevent the module from overriding your CSS.'),
);
return system_settings_form($form);
}