tags:

views:

39

answers:

1

Hello,

I have box in my theme which shows either some text (probably block, not solved yet) or user menu ("navigation") if user is logged in.

However, I can't google how to get only user navigation and spit it out in my theme (I don't want to use '$left'. I want just the navigation)

Thank you

A: 

I figured it.

Following this tutorial: Display or Print a Drupal block anywhere by Ishmael Sanchez,

I did following in my page.tpl.php:

<?php 
  $user_navigation = module_invoke('user', 'block', 'view', '1');
  print $user_navigation['content']; 
?>
Adam Kiss