
first ajax geed results + 2 different custom autocomplete func (not used for now) - deselect - searchapi Signed-off-by: bachy <git@g-u-i.net>
22 lines
387 B
PHP
22 lines
387 B
PHP
<?php
|
|
|
|
|
|
function materiobaseajax_search_ajax($id, $keys){
|
|
|
|
$page = search_api_page_load($id);
|
|
|
|
$return = menu_execute_active_handler($page->path . '/' . $keys, FALSE);
|
|
|
|
if (is_array($return)) {
|
|
$return = drupal_render($return);
|
|
}
|
|
|
|
$rep = array(
|
|
'id'=>$id,
|
|
'keys'=>$keys,
|
|
'page'=>$page,
|
|
'return'=>$return,
|
|
);
|
|
|
|
return drupal_json_output($rep);
|
|
} |