You are here

function search_api_views_search_api_index_delete in Search API 7

Implements hook_search_api_index_delete().

File

contrib/search_api_views/search_api_views.module, line 52
Integrates the Search API with Views.

Code

function search_api_views_search_api_index_delete(SearchApiIndex $index) {

  // Only do this if this is a "real" deletion, no revert.
  if (!$index
    ->hasStatus(ENTITY_IN_CODE)) {
    _search_api_views_index_unavailable($index);
  }
}