function userprotect_user_insert in User protect 7
Implements hook_user_insert().
File
- ./
userprotect.module, line 492 - Main module file for the userprotect module.
Code
function userprotect_user_insert(&$edit, $account) {
// A new user is being added. If auto-protect is enabled, then add protection.
if (variable_get('userprotect_autoprotect', FALSE)) {
userprotect_add_user($account->uid, 'user');
$protected = array_filter(variable_get('userprotect_protection_defaults', userprotect_user_protection_defaults()));
drupal_set_message(userprotect_display_protections($account, $protected));
}
}