| 1 |
<?php |
<?php |
| 2 |
// $Id:$ |
// $Id: search_autocomplete.module,v 1.2 2007/11/14 21:42:23 bonvga Exp $ |
| 3 |
|
|
| 4 |
/* |
/* |
| 5 |
* Drupal Module: Search Autocomplete |
* Drupal Module: Search Autocomplete |
| 75 |
'#default_value' => variable_get('search_autocomplete_method', 1), |
'#default_value' => variable_get('search_autocomplete_method', 1), |
| 76 |
'#options' => array( |
'#options' => array( |
| 77 |
'1' => t('Natural sort (no sort)'), |
'1' => t('Natural sort (no sort)'), |
| 78 |
'2' => t('Sort keyword alphabeticly'), |
'2' => t('Sort keyword alphabetically'), |
| 79 |
'3' => t('Sort by keyword\'s score'), |
'3' => t('Sort by keyword\'s score'), |
| 80 |
'4' => t('Sort by keyword\'s relevance (slow)'), |
'4' => t('Sort by keyword\'s relevance (slow)'), |
| 81 |
), |
), |
| 111 |
$form['search_autocomplete_setting_test'] = array( |
$form['search_autocomplete_setting_test'] = array( |
| 112 |
'#type' => 'fieldset', |
'#type' => 'fieldset', |
| 113 |
'#title' => t('Test field'), |
'#title' => t('Test field'), |
| 114 |
'#description' => t('In this field, you can check the apparence of an autocomplete search field.'), |
'#description' => t('In this field, you can check the appearence of an autocomplete search field.'), |
| 115 |
'#collapsible' => TRUE, |
'#collapsible' => TRUE, |
| 116 |
'#collapsed' => TRUE |
'#collapsed' => TRUE |
| 117 |
); |
); |
| 121 |
'#size' => 40, |
'#size' => 40, |
| 122 |
'#maxlength' => 40, |
'#maxlength' => 40, |
| 123 |
'#default_value' => '', |
'#default_value' => '', |
| 124 |
'#description' => t("Enter a keyword and wait the result."), |
'#description' => t("Enter a keyword and wait for the result."), |
| 125 |
'#autocomplete_path' => 'search_autocomplete/autocomplete', |
'#autocomplete_path' => 'search_autocomplete/autocomplete', |
| 126 |
'#required' => FALSE, |
'#required' => FALSE, |
| 127 |
); |
); |