function simplenews_user_create in Simplenews 3.x
Same name and namespace in other branches
- 8.2 simplenews.module \simplenews_user_create()
- 8 simplenews.module \simplenews_user_create()
Implements hook_ENTITY_TYPE_create() for user entity.
File
- ./
simplenews.module, line 423 - Simplenews node handling, sent email, newsletter block and general hooks.
Code
function simplenews_user_create(UserInterface $account) {
// Copy values for shared fields from existing subscriber.
if ($subscriber = Subscriber::loadByMail($account
->getEmail())) {
$subscriber
->copyToAccount($account);
}
}