function search_api_live_results_search_api_live_results_types in Search API live results 7
Implements hook_search_api_live_results_types().
Adds search types for search pages and views. The actual implementations lie in the above include files.
File
- ./
search_api_live_results.module, line 204
Code
function search_api_live_results_search_api_live_results_types() {
$types = array();
if (module_exists('search_api_page')) {
$types['search_api_page'] = array(
'name' => t('Search pages'),
'description' => t('Searches provided by the <em>Search pages</em> module.'),
'list searches' => 'search_api_live_results_pages_searches',
'create query' => 'search_api_live_results_pages_query',
);
}
if (module_exists('search_api_views')) {
$types['search_api_views'] = array(
'name' => t('Search views'),
'description' => t('Searches provided by the <em>Search views</em> module.'),
'list searches' => 'search_api_live_results_views_searches',
'create query' => 'search_api_live_results_views_query',
);
}
return $types;
}