Drupal menu in preprocess function


/ Published in: PHP
Save to your folder(s)

How to get a menu in a preprocess function


Copy this code and paste it in your HTML
  1. $lvl_menu = menu_navigation_links('secondary-links', 0);
  2. $vars['social_menu'] = theme('links', $lvl_menu, array('class' => 'secondary-menu') );

Report this snippet


Comments


You need to login to view comments.