start term search mode on materio_search_api_ajax, NOT FINISHED
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user