You are here

function subscriptions_user_insert in Subscriptions 2.0.x

Same name in this branch
  1. 2.0.x subscriptions.module \subscriptions_user_insert()
  2. 2.0.x subscriptions.module.old.php \subscriptions_user_insert()
Same name and namespace in other branches
  1. 7 subscriptions.module \subscriptions_user_insert()

Implements hook_ENTITY_TYPE_insert().

1 call to subscriptions_user_insert()
_subscriptions_get_setting in ./subscriptions.module.old.php
Helper function to retrieve send_self/autosub_on_post/autosub_on_update/autosub_on_comment/ | 1, 0, digest/send_interval/send_updates/send_comments/ | -1 = use default send_interval_visible/send_updates_visible/send_comments_visible/ | 1, 0, -1 = only…

File

./subscriptions.module, line 13
Module file for the basic Subscriptions framework.

Code

function subscriptions_user_insert(UserInterface $user) {
  \Drupal::database()
    ->insert('subscriptions')
    ->fields([
    'uid',
  ], [
    $user
      ->id(),
  ])
    ->execute();
}