Drupal Email registration and Email as username

WE HAVE MOVED!

Please visit our new Drupal Website at https://www.xenyo.com我們的新網頁設計公司網頁.

/*
* Enable email_registration.module
* Implements hook_email_registration_name()
*/
function MY_MODULE_email_registration_name($edit, $account) {
  return $account->mail;
}
Help Share this Article