| 1 |
<?php |
<?php |
| 2 |
// $Id: apachesolr_search.module,v 1.1.2.6.2.111.2.25 2009/10/19 14:32:52 robertDouglass Exp $ |
// $Id: apachesolr_search.module,v 1.1.2.6.2.111.2.26 2009/11/04 12:31:10 robertDouglass Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 990 |
} |
} |
| 991 |
$new_keywords = strtr($query->get_query_basic(), $replacements); |
$new_keywords = strtr($query->get_query_basic(), $replacements); |
| 992 |
|
|
| 993 |
$form['basic']['suggestion'] = array( |
// Show only if suggestion is different than current query. |
| 994 |
'#prefix' => '<div class="spelling-suggestions">', |
if ($query->get_query_basic() != $new_keywords) { |
| 995 |
'#suffix' => '</div>', |
$form['basic']['suggestion'] = array( |
| 996 |
'#type' => 'item', |
'#prefix' => '<div class="spelling-suggestions">', |
| 997 |
'#title' => t('Did you mean'), |
'#suffix' => '</div>', |
| 998 |
'#value' => l($new_keywords, $query->get_path($new_keywords)), |
'#type' => 'item', |
| 999 |
); |
'#title' => t('Did you mean'), |
| 1000 |
|
'#value' => l($new_keywords, $query->get_path($new_keywords)), |
| 1001 |
|
); |
| 1002 |
|
} |
| 1003 |
} |
} |
| 1004 |
} |
} |
| 1005 |
} |
} |