Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
can someone tell me where in my LoginToboggan block do I place these variables?
* $user_name
* $user_link
* $is_page_authcache (what is a template hook?)
thanks!
global $user;
if ($user->uid) {
$edit_account_link = l(t('Your Account'), 'user/'.$user->uid.'/edit');
$logout_link = l(t('Logout'), 'logout',
array( 'query' => $redirect, 'alias' => TRUE )
);
$user_utilities = t('Welcome back, ') . $user->name. '. <br/>' . $edit_account_link . t(' | ') . $logout_link;
}
else {
$login_link = l(t('Sign in'), 'user', array( 'query' => drupal_get_destination(), 'alias' => FALSE ));
$register_link = l(t('Join'), 'user/register',
array( 'query' => $redirect, 'alias' => TRUE )
);
$user_utilities = $login_link . t(' | ') . $register_link;
}
return $user_utilities . $search_link;
Comments
Comment #1
simg CreditAttribution: simg commentedsorry you didn't get any help on this issue. closing due to it's age but you're welcome to re-open (I don't know the answer though :) )