function hook_search_api_index_insert in Search API 7
A new search index was created.
Parameters
SearchApiIndex $index: The new index.
2 functions implement hook_search_api_index_insert()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- search_api_search_api_index_insert in ./
search_api.module - Implements hook_search_api_index_insert().
- search_api_views_search_api_index_insert in contrib/
search_api_views/ search_api_views.module - Implements hook_search_api_index_insert().
File
- ./
search_api.api.php, line 487 - Hooks provided by the Search API module.
Code
function hook_search_api_index_insert(SearchApiIndex $index) {
db_insert('example_search_index')
->fields(array(
'index' => $index->machine_name,
'insert_time' => REQUEST_TIME,
))
->execute();
}