userprotect_test.module in User protect 8
Support module for the User protect tests.
File
tests/modules/userprotect_test/userprotect_test.moduleView source
<?php
/**
* @file
* Support module for the User protect tests.
*/
/**
* Implements hook_user_format_name_alter().
*
* Alters the display name of an user to test when the user's display name must
* be used and when the raw account name.
*/
function userprotect_test_user_format_name_alter(&$name, $account) {
$name .= '-userprotect';
}
Functions
Name | Description |
---|---|
userprotect_test_user_format_name_alter | Implements hook_user_format_name_alter(). |