Programmatically load a menu

Public

It could be useful for custom 404

</> CopyGet raw version
php
  1. // https://api.drupal.org/api/drupal/includes!menu.inc/function/menu_tree_all_data/7
  2. $tree = menu_tree_all_data('machine-name-of-menu');
  3. menu_tree_add_active_path($tree);
  4. print drupal_render(menu_tree_output($tree));