is_new) { $account->mail = NULL; $account->uid = NULL; email_registration_user_insert($edit, $account, $category); } } /* * Implementation of hook_user_update. */ function sbws_user_update(&$edit, $account, $category) { // Only update username when old username and e-mail address were identical // and no real name given as new username if ($account->original->name == $account->original->mail && valid_email_address($account->name)) { $account->name = NULL; email_registration_user_insert($edit, $account, $category); } } /* * Implementation of hook_email_registration_name. */ function sbws_email_registration_name($edit, $account) { // Username equals e-mail address return $edit['mail']; } function sbws_preprocess_page(&$vars) { // Empty title on login page if (arg(0) == 'user' && !user_is_logged_in()) { $vars['title'] = ''; } }