1 menu_example.install menu_example_install()

Implements hook_install().

Programmatically create a menu. We'll use this menu to show links created by this module.

File

modules/examples/menu_example/menu_example.install, line 13
Examples demonstrating the Backdrop Menu API.

Code

function menu_example_install() {
  $menu = array();
  $menu['menu_name'] = "menu-example-menu";
  $menu['title'] = "Menu example menu";
  $menu['description'] = "A programmatically created menu.";
  menu_save($menu);
}