Fix ambassador name on ambassador page
Use a proper user name formatting function instead of name field of the user account. The user format triggers hook_username_alter so properly formats the output when we use the oauth2 fields. Change-Id: Ie8df65822a2cad61f618e6c835cf7c0eebde3ccd
This commit is contained in:
parent
0485a766a3
commit
6ecae2d620
|
@ -264,7 +264,7 @@ function openstack_bootstrap_preprocess_user_profile(&$variables) {
|
|||
module_load_include('inc', 'field_group_location', 'field_group_lookup');
|
||||
$continents = _continent_get_predefined_list();
|
||||
$variables['user_profile']['name'][0] = array(
|
||||
'#markup' => '<h3><a href="">'.$account->name.
|
||||
'#markup' => '<h3><a href="">'.format_username($account).
|
||||
' <span class="ambassador-region">// '.$continents[$region_value].'</span></a></h3>',
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue