You are here

function hook_ulogin_username_alter in uLogin (advanced version) 8

Same name and namespace in other branches
  1. 6 ulogin.api.php \hook_ulogin_username_alter()
  2. 7 ulogin.api.php \hook_ulogin_username_alter()

Alter the username for a user before creation.

Parameters

$name string: The username for the user being created, it must be unique.

$data object: The data object with all the properties from authentication provider.

See also

\Drupal\ulogin\UloginHelper::makeUsername()

1 invocation of hook_ulogin_username_alter()
UloginHelper::makeUsername in src/UloginHelper.php
Internal functions.

File

./ulogin.api.php, line 20
Hooks provided by the uLogin module.

Code

function hook_ulogin_username_alter(&$name, $data) {
}