Posted By

kfiil on 05/18/11


Tagged

drupal preprocess


Versions (?)

Drupal menu in preprocess function


 / Published in: PHP
 

How to get a menu in a preprocess function

  1. $lvl_menu = menu_navigation_links('secondary-links', 0);
  2. $vars['social_menu'] = theme('links', $lvl_menu, array('class' => 'secondary-menu') );

Report this snippet  

You need to login to post a comment.