You are here

function user_email_verification_user_insert in User email verification 7

Same name and namespace in other branches
  1. 8 user_email_verification.module \user_email_verification_user_insert()

Implements hook_user_insert().

File

./user_email_verification.module, line 396
This module allows you to have e-mail verification and in meanwhile allowing the users to type their own passwords. If they do not verify their accounts in a certain time interval the user will be blocked.

Code

function user_email_verification_user_insert(&$edit, $account, $category) {
  db_insert('user_email_verification')
    ->fields(array(
    'uid' => $account->uid,
    'verified' => 0,
    'last_reminder' => REQUEST_TIME,
    'reminders' => 0,
  ))
    ->execute();
}