You are here

ulogin.api.php in uLogin (advanced version) 8

Same filename and directory in other branches
  1. 6 ulogin.api.php
  2. 7 ulogin.api.php

Hooks provided by the uLogin module.

File

ulogin.api.php
View source
<?php

/**
 * @file
 * Hooks provided by the uLogin module.
 */

/**
 * Alter the username for a user before creation.
 *
 * @param $name string
 *   The username for the user being created, it must be unique.
 * @param $data object
 *   The data object with all the properties from authentication provider.
 *
 * @see \Drupal\ulogin\UloginHelper::makeUsername()
 *
 * @ingroup ulogin
 */
function hook_ulogin_username_alter(&$name, $data) {
}

/**
 * @} End of "addtogroup hooks".
 */

Functions

Namesort descending Description
hook_ulogin_username_alter Alter the username for a user before creation.