Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Borrowing from snippets I've found in contributed themes, it seems that one way would be a bit of conditional php. If your theme is already printing the $secondary_links variable in page.tpl.php you can try the below.
<?php
global $user;
if (!$user->uid) {
/* IF USER NOT LOGGED IN DO "THIS" ie: not print $secondary_links */
}
else {
/* IF USER LOGGED IN DO "THIS" ie: print $secondary_links */
}
?>
Comments
=-=
Borrowing from snippets I've found in contributed themes, it seems that one way would be a bit of conditional php. If your theme is already printing the $secondary_links variable in page.tpl.php you can try the below.
note the orange text and insert what you need.
Thanks.
Never thought of that.