function search_api_autocomplete_search_load in Search API Autocomplete 7
Loads an autocomplete search entity.
Parameters
int|string $id: Either the ID or machine name of an autocomplete search.
bool $reset: Whether to reset the internal cache.
Return value
SearchApiAutocompleteSearch The specified autocomplete search entity, or FALSE if it doesn't exist.
3 calls to search_api_autocomplete_search_load()
- example_form_example_search_form_alter in ./
search_api_autocomplete.api.php - Implements hook_form_FORM_ID_alter().
- search_api_autocomplete_form_search_api_page_search_form_alter in ./
search_api_autocomplete.search_api_page.inc - Implements hook_form_FORM_ID_alter().
- search_api_autocomplete_form_views_exposed_form_alter in ./
search_api_autocomplete.search_api_views.inc - Implements hook_form_FORM_ID_alter().
File
- ./
search_api_autocomplete.module, line 316 - Adds autocomplete capabilities for Search API searches.
Code
function search_api_autocomplete_search_load($id, $reset = FALSE) {
$ret = search_api_autocomplete_search_load_multiple(array(
$id,
), array(), $reset);
return $ret ? reset($ret) : FALSE;
}