function search_api_saved_searches_user_delete in Search API Saved Searches 8
Same name and namespace in other branches
- 7 search_api_saved_searches.module \search_api_saved_searches_user_delete()
Implements hook_ENTITY_TYPE_delete() for type "user".
Deletes all saved searches owned by the deleted user.
File
- ./
search_api_saved_searches.module, line 232 - Allows visitors to bookmark searches and get notifications for new results.
Code
function search_api_saved_searches_user_delete(UserInterface $account) {
_search_api_saved_searches_delete_searches('uid', $account
->id());
}