function userprotect_test_user_format_name_alter in User protect 8
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.
File
- tests/
modules/ userprotect_test/ userprotect_test.module, line 14 - Support module for the User protect tests.
Code
function userprotect_test_user_format_name_alter(&$name, $account) {
$name .= '-userprotect';
}