function highlight_admin_settings in Highlight 6
Same name and namespace in other branches
- 5 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 56
Code
function highlight_admin_settings() {
$form['highlight'] = array(
'#type' => 'fieldset',
'#title' => t('Search Highlight Configuration'),
);
/*Maybe TODO
$form['highlight']['hl_replace'] = array(
'#type' => 'textfield',
'#title' => t('Replacement string'),
'#default_value' => variable_get('hl_replace', '<strong id="keyword" class="highlight">$1</strong>'),
'#description' => t('This string will be used to replace the found value <strong>key</strong> with. <strong>$1</strong> is variable.'),
);
*/
/*TODO
$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']['hl_use_css'] = array(
'#type' => 'checkbox',
'#title' => t('Use Module CSS'),
'#default_value' => variable_get('hl_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.'),
);
$form['highlight']['hl_use_js'] = array(
'#type' => 'checkbox',
'#title' => t('Use Javascript to highlight'),
'#default_value' => variable_get('hl_use_js', true),
'#description' => t('Uses Javascript to highligh on the client side (faster but not work on browsers without javascript support like mobile browers).'),
);
/*TODO
$form['highlight']['hl_use_anchor'] = array(
'#type' => 'checkbox',
'#title' => t('Auto jump to destination anchor of the keyword'),
'#default_value' => variable_get('hl_use_anchor', false),
'#description' => t('Auto jump to destination anchor of the keyword.'),
);
*/
return system_settings_form($form);
}