You are here

function search_api_saved_searches_user_delete in Search API Saved Searches 7

Same name and namespace in other branches
  1. 8 search_api_saved_searches.module \search_api_saved_searches_user_delete()

Implements hook_user_delete().

If a user is deleted, delete their saved searches, too.

File

./search_api_saved_searches.module, line 362
Offers the ability to save searches and be notified of new results.

Code

function search_api_saved_searches_user_delete($account) {
  entity_delete_multiple('search_api_saved_search', array_keys(search_api_saved_search_load_multiple(FALSE, array(
    'uid' => $account->uid,
  ))));
}