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:
Marton Kiss 2015-10-27 07:47:53 +09:00
parent 0485a766a3
commit 6ecae2d620
1 changed files with 1 additions and 1 deletions

View File

@ -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>',
);
}