Advertisement
Guest User

Untitled

a guest
May 3rd, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. $menu = array(
  2. 'menu_name' => 'menu-footer-top',
  3. 'title' => 'Top of the footer',
  4. 'description' => 'Lorem Ipsum',
  5. );
  6. menu_save($menu);
  7.  
  8. $item = array (
  9. 'link_title' => 'Le lexique',
  10. 'link_path' => 'lexicon/3',
  11. 'menu_name' => 'menu-footer-top',
  12. 'weight' => 0
  13. );
  14.  
  15. menu_link_save($item);
  16.  
  17. $item = array (
  18. 'link_title' => 'Brochure D\'information',
  19. 'link_path' => 'node/4',
  20. 'menu_name' => 'menu-footer-top',
  21. 'weight' => 0
  22. );
  23.  
  24. menu_link_save($item);
  25.  
  26. $item = array (
  27. 'link_title' => 'Espace Presse',
  28. 'link_path' => 'node/3',
  29. 'menu_name' => 'menu-footer-top',
  30. 'weight' => 0
  31. );
  32.  
  33. menu_link_save($item);
  34.  
  35. $item = array (
  36. 'link_title' => 'Outils de communication',
  37. 'link_path' => 'node/5',
  38. 'menu_name' => 'menu-footer-top',
  39. 'weight' => 0
  40. );
  41.  
  42. menu_link_save($item);
  43. $item = array (
  44. 'link_title' => 'Nous contacter',
  45. 'link_path' => 'contact',
  46. 'menu_name' => 'menu-footer-top',
  47. 'weight' => 0
  48. );
  49.  
  50. menu_link_save($item);
  51. $item = array (
  52. 'link_title' => 'Qui Sommes Nous ?',
  53. 'link_path' => 'node/6',
  54. 'menu_name' => 'menu-footer-top',
  55. 'weight' => 0
  56. );
  57. menu_rebuild();
  58.  
  59. menu_link_save($item);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement