code cleaning

This commit is contained in:
Bachir Soussi Chiadmi
2014-09-27 09:58:09 +08:00
parent 0bba2d0657
commit 1cc9a63c46
2 changed files with 10 additions and 7 deletions
+3 -3
View File
@@ -159,7 +159,7 @@ function materio_search_api_results_search(){
}
else if(user_access('use materio search api')){
// dsm('normal search');
// switch index depending on key words type full text or taxonomy term (autocomplete selection)
# switch index depending on key words type full text or taxonomy term (autocomplete selection)
$searchmode = isset($user->data['materiosearchapi_searchmode']) ? $user->data['materiosearchapi_searchmode'] : "fulltext";
switch($searchmode){
case "fulltext":
@@ -180,13 +180,13 @@ function materio_search_api_results_search(){
}
if(!user_access('use materio search api advanced search') && !user_access('use materio search api')){
// potential results index for anonymous and free user
# potential results index for anonymous and free user
$could_index_machine_name = variable_get('mainsearchindex_'.$language->language, -1);
$could_index = search_api_index_load($index_machine_name);
}
if ($typed) {
// TODO: cache the results with cache graceful : http://drupal.org/project/cache_graceful
# TODO: cache the results with cache graceful : http://drupal.org/project/cache_graceful
try {
# retrieve viewmode and then use it to define the query range