You are here

function user_register_notify_user in User registration notification 6

Implementation of hook_user().

File

./user_register_notify.module, line 95
Notifies administrator of new user registrations.

Code

function user_register_notify_user($op, &$edit, &$account, $category = NULL) {
  switch ($op) {
    case 'insert':
      user_register_notify_setup_email($edit, $account);
      break;
    case 'update':
      if (variable_get('user_register_notify_alert', 'create') == 'update') {
        user_register_notify_setup_email($edit, $account, 'update');
      }
      break;
  }
}