function search_api_saved_searches_search_api_index_delete in Search API Saved Searches 8
Same name and namespace in other branches
- 7 search_api_saved_searches.module \search_api_saved_searches_search_api_index_delete()
Implements hook_ENTITY_TYPE_delete() for type "search_api_index".
Deletes all saved searches that used this index.
File
- ./
search_api_saved_searches.module, line 100 - Allows visitors to bookmark searches and get notifications for new results.
Code
function search_api_saved_searches_search_api_index_delete(IndexInterface $index) {
_search_api_saved_searches_delete_searches('index_id', $index
->id());
}