You are here

public function SearchApiIndex::postDelete in Search API 7

Execute necessary tasks when the index is removed from the database.

File

includes/index_entity.inc, line 203
Contains SearchApiIndex.

Class

SearchApiIndex
Class representing a search index.

Code

public function postDelete() {
  try {
    if ($server = $this
      ->server()) {
      $server
        ->removeIndex($this);
    }
  } catch (SearchApiException $e) {
    watchdog_exception('search_api', $e);
  }

  // Stop tracking entities for indexing.
  $this
    ->dequeueItems();
}