function realname_check_breadcrumbs in Real Name 6
Correct user page breadcrumbs.
4 calls to realname_check_breadcrumbs()
- realname_contact_user in ./
realname.module - Intercept the Personal contact page.
- realname_tracker_page in ./
realname.module - Intercept the tracker page.
- realname_user_edit in ./
realname.module - Intercept the user edit page. Modified from user.module. Fix some core bugs.
- realname_user_view in ./
realname.module - Intercept the user page view. Modified from user.module. Fix some core bugs.
File
- ./
realname.module, line 215
Code
function realname_check_breadcrumbs($account) {
$trail = array(
l(t('Home'), '<front>'),
);
// If we are looking at someone other than the current user, fix the breadcrumb.
if ($account->uid != $GLOBALS['user']->uid) {
$trail[] = decode_entities(l($account->realname, 'user/' . $account->uid));
}
$trail = drupal_set_breadcrumb($trail);
}