Skip to content

main links source menu is hardcoded #192

Open
@soniktrooth

Description

@soniktrooth

The following code lives in kalatheme_process_page(). It is rendering the core 'main-menu' menu which is then printed in page.tpl as the main links. This is incorrect. What should be happening is this:

  1. get site variable for main links source as set in config.
  2. pass THAT menu name to menu_tree_all_data()
  3. ???
  4. Profit
  // Get the entire main menu tree.
  $main_menu_tree = array();
  $main_menu_tree = menu_tree_all_data('main-menu', NULL, 2);
  // Add the rendered output to the $main_menu_expanded variable.
  $variables['main_menu_expanded'] = menu_tree_output($main_menu_tree);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions