| 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', |
| 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 |
?> |
?> |