From 6ecae2d62077c44d73e16e29a1fd4be4e718ec68 Mon Sep 17 00:00:00 2001 From: Marton Kiss Date: Tue, 27 Oct 2015 07:47:53 +0900 Subject: [PATCH] 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 --- themes/openstack_bootstrap/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/openstack_bootstrap/template.php b/themes/openstack_bootstrap/template.php index 22cec33..ac1421d 100755 --- a/themes/openstack_bootstrap/template.php +++ b/themes/openstack_bootstrap/template.php @@ -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' => '

'.$account->name. + '#markup' => '

'.format_username($account). ' // '.$continents[$region_value].'

', ); }