1

Is there any way to add new items to an existing menu using custom module in Drupal7.

1 Answer 1

1

For Drupal 6 you do use menu_link_save:

$item = array(
  'link_title' => 'Menu title',
  'link_path' => 'menu/path',
  'menu_name' => 'menu_name',
  'module' => 'your_module',
);
menu_link_save($item);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.