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!

<?php
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

Status:Active» Closed (fixed)

sorry 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 :) )