/[drupal]/contributions/modules/jstools/activesearch/activesearch.module
ViewVC logotype

Diff of /contributions/modules/jstools/activesearch/activesearch.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.10, Mon Apr 14 15:26:44 2008 UTC revision 1.1.2.11, Fri Nov 7 01:04:51 2008 UTC
# Line 1  Line 1 
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().
# Line 61  function activesearch_form_alter($form_i Line 61  function activesearch_form_alter($form_i
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'),
# Line 160  function activesearch_load() { Line 167  function activesearch_load() {
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    

Legend:
Removed from v.1.1.2.10  
changed lines
  Added in v.1.1.2.11

  ViewVC Help
Powered by ViewVC 1.1.2