You are here

function hook_search_api_saved_searches_settings_update in Search API Saved Searches 7

Responds to a settings entity being updated.

This hook is invoked after the settings entity has been updated in the database.

Parameters

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

See also

hook_entity_update()

2 functions implement hook_search_api_saved_searches_settings_update()

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_update in search_api_saved_searches_i18n/search_api_saved_searches_i18n.module
Implements hook_search_api_saved_searches_update().
search_api_saved_searches_search_api_saved_searches_settings_update in ./search_api_saved_searches.module
Implements hook_search_api_saved_searches_settings_update().

File

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

Code

function hook_search_api_saved_searches_settings_update(SearchApiSavedSearchSettings $settings) {
  db_update('mytable')
    ->fields(array(
    'extra' => print_r($settings, TRUE),
  ))
    ->condition('id', entity_id('search_api_saved_searches_settings', $settings))
    ->execute();
}