You are here

function apply_for_role_user_insert in Apply for role 7

Same name and namespace in other branches
  1. 7.2 apply_for_role.module \apply_for_role_user_insert()

Implements hook_user_insert().

File

./apply_for_role.module, line 331
Allows users to apply for roles.

Code

function apply_for_role_user_insert(&$edit, $account, $category) {
  if (variable_get('apply_for_role_register', 0) && !empty($edit['rid'])) {
    apply_for_role_process_applications($account, $edit['rid']);
    $edit['rid'] = NULL;
  }
}