Created
August 9, 2014 10:28
-
-
Save msankhala/a71d599b8384b3977719 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 | |
$full_names = field_get_items('user', $user, 'field_full_name'); | |
if ($full_names) { | |
$vars['full_name'] = check_plain($full_names[0]['value']); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment