You are here

function realname_registration_user in Realname registration 6.2

Same name and namespace in other branches
  1. 6 realname_registration.module \realname_registration_user()

Implementation of hook_user().

File

./realname_registration.module, line 105
For using real names during registration.

Code

function realname_registration_user($op, &$edit, &$account, $category = NULL) {
  if ($op == 'validate') {
    if (isset($edit['name']) && $edit['name'] == 'unset_username') {
      if (variable_get('realname_registration_ucfirst', 0)) {
        realname_registration_ucfirst($edit);
      }
      realname_registration_set_username($edit);
    }
  }
}