function activesearch_admin_settings in Javascript Tools 5
1 string reference to 'activesearch_admin_settings'
- activesearch_menu in activesearch/
activesearch.module - Implementation of hook_menu().
File
- activesearch/
activesearch.module, line 61
Code
function activesearch_admin_settings() {
$form = array();
$form['jstools_history_remote'] = array(
'#type' => 'radios',
'#title' => t('History plugin'),
'#description' => t('Load the history_remote plugin, which ties search submission to browser history. Active Search will be missing some functionality if this is disabled. However, the plugin can cause errors in combination with certain other Javascript functionality. Disable to avoid such errors. Note that disabling this setting will affect other modules if you enable them: Tabs and Dynamicload.'),
'#default_value' => variable_get('jstools_history_remote', 0),
'#options' => array(
t('disabled'),
t('enabled'),
),
);
$form['activesearch_tabs_mode'] = array(
'#type' => 'radios',
'#title' => t('Tabs'),
'#default_value' => variable_get('activesearch_tabs_mode', 'node'),
'#options' => array(
0 => t('none'),
'term' => t('categories'),
'node' => t('content types'),
),
'#description' => t('Select the types of tabs you would like for displaying search results.'),
);
$form['activesearch_nodes'] = array(
'#type' => 'checkboxes',
'#title' => t('Content types'),
'#default_value' => variable_get('activesearch_nodes', array()),
'#options' => node_get_types('names'),
'#description' => t('If you wish to present ajax search results by content type, select the content types to use here.'),
);
$form = system_settings_form($form);
return $form;
}