start term search mode on materio_search_api_ajax, NOT FINISHED

This commit is contained in:
Bachir Soussi Chiadmi
2013-12-07 11:55:28 +01:00
parent 983f51e711
commit 5d6f96ed0e
4 changed files with 9 additions and 2 deletions

View File

@@ -73,6 +73,13 @@ function materio_search_api_ajax_search($page = 0){
}
}
// define mode (between full text or only term selected on autocompletion)
// TODO implement the new search mode (only term)
if(isset($_GET['searchmode'])){
$searchmode = $_GET['searchmode'];
user_save($user, array("data"=>array('materiosearchapi_searchmode' => $searchmode)));
}
// dsm($path, 'path');
// execute the searcj path and retrive results
menu_set_active_item($path);