Home  >  Article  >  Backend Development  >  Drupal 7 navigation bar

Drupal 7 navigation bar

WBOY
WBOYOriginal
2016-07-25 08:49:56754browse
可输出二级子菜单
  1. if (module_exists('i18n_menu')) {
  2. $main_menu_tree = i18n_menu_translated_tree(variable_get('menu_main_links_source', 'main-menu'));
  3. } else {
  4. $main_menu_tree = menu_tree(variable_get('menu_main_links_source', 'main-menu'));
  5. }
  6. print drupal_render($main_menu_tree);
  7. endif; ?>
复制代码


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn