/[drupal]/contributions/modules/search_autocomplete/search_autocomplete.module
ViewVC logotype

Diff of /contributions/modules/search_autocomplete/search_autocomplete.module

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

revision 1.1, Tue Oct 30 22:17:38 2007 UTC revision 1.2, Wed Nov 14 21:42:23 2007 UTC
# Line 55  function search_autocomplete_admin_setti Line 55  function search_autocomplete_admin_setti
55                  '#return_value' => 1,                  '#return_value' => 1,
56                  '#required' => FALSE                  '#required' => FALSE
57          );          );
58            $form['search_autocomplete_hook']['search_autocomplete_hook_search_block'] = array(
59                    '#type' => 'checkbox',
60                    '#title' => t('Apply autocomplete search on the search block form. (need the module <a href="http://drupal.org/project/search_block" target="_blank">Search Block</a>)'),
61                    '#default_value' => variable_get("search_autocomplete_hook_search_block", 0),
62                    '#return_value' => 1,
63                    '#required' => FALSE
64            );
65    
66          $form['search_autocomplete_setting'] = array(          $form['search_autocomplete_setting'] = array(
67                  '#type' => 'fieldset',                  '#type' => 'fieldset',
# Line 162  function search_autocomplete_form_alter( Line 169  function search_autocomplete_form_alter(
169                                  $form["basic"]["inline"]["keys"]["#autocomplete_path"] = 'search_autocomplete/autocomplete';                                  $form["basic"]["inline"]["keys"]["#autocomplete_path"] = 'search_autocomplete/autocomplete';
170                          }                          }
171                  }                  }
172                    if (variable_get("search_autocomplete_hook_search_block", 0)==1) {
173                            if ($form_id == "search_block_form") {
174                                    $form["search_block_form_keys"]["#autocomplete_path"] = 'search_autocomplete/autocomplete';
175                            }
176                    }
177          }          }
178  }  }
179  ?>  ?>

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.2