function hook_alter_user_attribute_display
Search API
7.x user.api.php | hook_alter_user_attribute_display($attribute_id, &$value) |
6.x user.api.php | hook_alter_user_attribute_display($attribute_id, &$value) |
This function lets us alter the value of a user attribute, before it is displayed to the user.
Notice that value is passed by reference.
File
- modules/
user/ user.api.php, line 138
Code
function hook_alter_user_attribute_display($attribute_id, &$value) {
if ($attribute_id == "my_module__name_value") {
$value = strtoupper($value);
}
}