You are here

function hook_search_api_saved_searches_settings_delete in Search API Saved Searches 7

Responds to settings entity deletion.

This hook is invoked after the settings entity has been removed from the database.

Parameters

SearchApiSavedSearchSettings $settings: The settings entity that is being deleted.

See also

hook_entity_delete()

2 functions implement hook_search_api_saved_searches_settings_delete()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

search_api_saved_searches_i18n_search_api_saved_searches_settings_delete in search_api_saved_searches_i18n/search_api_saved_searches_i18n.module
Implements hook_search_api_saved_searches_delete().
search_api_saved_searches_search_api_saved_searches_settings_delete in ./search_api_saved_searches.module
Implements hook_search_api_saved_searches_settings_delete().

File

./search_api_saved_searches.api.php, line 177
Hooks provided by the Search API saved searches module.

Code

function hook_search_api_saved_searches_settings_delete(SearchApiSavedSearchSettings $settings) {
  db_delete('mytable')
    ->condition('pid', entity_id('search_api_saved_searches_settings', $settings))
    ->execute();
}