Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function zen_lansed_preprocess_page(&$variables, $hook) {
- // меняем на странице /user вывод в заголовке с имени пользователя на full_name
- $account = user_load($GLOBALS['user']->uid);
- $arg = arg();
- if ($arg[0] == 'user' && !empty($arg[1]) && is_numeric($arg[1]) && @empty($arg[2])) {
- if (isset($account->field_full_name["und"])) {
- $variables['title'] = $account->field_full_name["und"][0]["safe_value"];
- } else {
- $variables['title'] = "полного имени нет";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement