| 1 |
<?php |
<?php |
| 2 |
// $Id: activesearch.module,v 1.1.2.9 2008/03/29 13:37:28 nedjo Exp $ |
// $Id: activesearch.module,v 1.1.2.10 2008/04/14 15:26:44 nedjo Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Implementation of hook_menu(). |
* Implementation of hook_menu(). |
| 61 |
|
|
| 62 |
function activesearch_admin_settings() { |
function activesearch_admin_settings() { |
| 63 |
$form = array(); |
$form = array(); |
| 64 |
|
$form['jstools_history_remote'] = array( |
| 65 |
|
'#type' => 'radios', |
| 66 |
|
'#title' => t('History plugin'), |
| 67 |
|
'#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.'), |
| 68 |
|
'#default_value' => variable_get('jstools_history_remote', 0), |
| 69 |
|
'#options' => array(t('disabled'), t('enabled')), |
| 70 |
|
); |
| 71 |
$form['activesearch_tabs_mode'] = array( |
$form['activesearch_tabs_mode'] = array( |
| 72 |
'#type' => 'radios', |
'#type' => 'radios', |
| 73 |
'#title' => t('Tabs'), |
'#title' => t('Tabs'), |
| 167 |
drupal_add_js('misc/progress.js'); |
drupal_add_js('misc/progress.js'); |
| 168 |
$path = drupal_get_path('module', 'activesearch'); |
$path = drupal_get_path('module', 'activesearch'); |
| 169 |
jstools_add_js($path . '/activesearch.js'); |
jstools_add_js($path . '/activesearch.js'); |
| 170 |
drupal_add_js(drupal_get_path('module', 'jstools') . '/jquery.history_remote.pack.js'); |
if (variable_get('jstools_history_remote', 0)) { |
| 171 |
|
drupal_add_js(drupal_get_path('module', 'jstools') . '/jquery.history_remote.pack.js'); |
| 172 |
|
} |
| 173 |
module_invoke('tabs', 'load'); |
module_invoke('tabs', 'load'); |
| 174 |
} |
} |
| 175 |
|
|