Menu

Programmatically creating menu items in Drupal

This short how-to tutorial describes a quick and easy way to automatically create hidden menu items for newly created content nodes simply by executing a short PHP snippet when Drupal's Rules module triggers a node creation event. In combination with Menu Breadcrumb module, this allows the site administrator not to grant administer menu permission to users and still have the usable menu trails created for each new node.