@@ -144,7 +144,7 @@ function materio_search_api_results_search(){
|
||||
foreach ($words[0] as $word) {
|
||||
// $word = preg_replace('/\b-/', '\-', trim($word));
|
||||
// dsm($word);
|
||||
$keys[] = $word;
|
||||
$keys[] = trim($word);
|
||||
}
|
||||
|
||||
$index_machine_name = variable_get('mainsearchindex', -1);
|
||||
@@ -224,6 +224,7 @@ function materio_search_api_results_search(){
|
||||
$ret['results']['#view_mode'] = $viewmode;
|
||||
$ret['results']['#keys'] = $keys;
|
||||
|
||||
drupal_set_title('<i class="icon-materio-search"></i>'.check_plain($typed), PASS_THROUGH);
|
||||
|
||||
// Load pager.
|
||||
// if ($results['result count'] > $page->options['per_page']) {
|
||||
@@ -305,7 +306,7 @@ function materio_search_api_actuality(){
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
drupal_set_title(t('Actualities'));
|
||||
|
||||
return theme('materio_search_api_actuality', array(
|
||||
'items' => $items,
|
||||
|
||||
Reference in New Issue
Block a user