Skip to main content

Timeline for Add menu item in hook form submit

Current License: CC BY-SA 3.0

8 events
when toggle format what by license comment
Nov 25, 2014 at 14:21 comment added Cracs Nope, hidden is defined automaticaly when i create my link.. I updated my post with the code... ty for your try.
Nov 25, 2014 at 14:16 comment added Djouuuuh 'hidden' => 0, maybe? ;-) Seriously, I don't know why it doesn't work either... :-(
Nov 25, 2014 at 13:53 comment added Cracs I saved my link with that array: $item = array('link_path' => 'blabla','link_title' => 'Lot 1','title' => 'Lot 1','plid' => $mlid,'customized' => 1); And nothing appear. The link is saved because i can see him if i debug the menu but won't appear in my administration and front-end... So i don't know why.
Nov 25, 2014 at 13:44 comment added Djouuuuh Could you try to add a line in $item array: 'customized' => 1, ?
Nov 25, 2014 at 13:41 comment added Cracs Ok sorry for my english. The link appear when i debug (kpr($link);) my menu, i can see all my links of this menu. But in my "admin->structure->menu" and my "front-end where the menu is placed" the link created doesn't appear.
Nov 25, 2014 at 13:37 comment added Djouuuuh Sorry @Remi I don't understand very well what happens. The link doesn't appear neither in your menu (front-end), nor in the admin (admin->structure->menu) but you see it where??
Nov 25, 2014 at 13:34 comment added Cracs Thanks i tried that but the link isn't added to my menu, but when i debug the menu i can see the link added is the link list of this menu. Why he isn't appear in my administration of this menu ?
Nov 25, 2014 at 10:55 history answered Djouuuuh CC BY-SA 3.0