You are here

function search_api_saved_searches_user_insert in Search API Saved Searches 8

Same name and namespace in other branches
  1. 7 search_api_saved_searches.module \search_api_saved_searches_user_insert()

Implements hook_ENTITY_TYPE_insert() for type "user".

If a new user already has saved searches with the same mail address, associate them with the new user. However, only do this if the user is already active.

File

./search_api_saved_searches.module, line 111
Allows visitors to bookmark searches and get notifications for new results.

Code

function search_api_saved_searches_user_insert(UserInterface $account) {
  _search_api_saved_searches_claim_anonymous_searches($account);
}