Created
August 9, 2014 10:29
-
-
Save msankhala/cd122d095703b28bc576 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function THEME_preprocess_page() { | |
global $user; | |
$user = user_load($user->uid); // Make sure the user object is fully loaded | |
$wrapper = entity_metadata_wrapper('user', $user); | |
$vars['full_name'] = $wrapper->field_full_name->value(array('sanitize' => TRUE)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment