function user_limit_user_insert in User Limit 7
Implements hook_user_insert().
File
- ./
user_limit.module, line 18 - The User Limit module limits the number of users that can be registered on a Drupal site.
Code
function user_limit_user_insert(&$edit, $account, $category) {
// If the user limit has been reached, delete any created accounts and log
// account deletion.
if (user_limit_reached(TRUE)) {
user_delete($account->uid);
watchdog('user_limit', 'User limit surpassed', array(), WATCHDOG_NOTICE, 'admin/user/settings');
}
}