Bulk create menu lnks


$items = array(
    array(
      'link_path' => '<front>',
      'link_title' => 'TITLE',
      'menu_name' => 'footer-menu',
    ),
    array(
      'link_path' => '<front>',
      'link_title' => 'TITLE',
      'menu_name' => 'footer-menu',
    ),
    array(
      'link_path' => '<front>',
      'link_title' => 'TITLE',
      'menu_name' => 'footer-menu',
    ),
    array(
      'link_path' => '<front>',
      'link_title' => 'TITLE',
      'menu_name' => 'footer-menu',
  );
 
  foreach ($items as $item) {
     menu_link_save($item);
  }


Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.