Am using Drupal 7. Below is my code where am trying to create menu links programmatically:
$links[] = array(
'menu_name' => 'management',
'link_path' => 'myheader/config',
'link_title' => 'Header Settings',
'options' => array(),
'weight' => 2,
'parent' => 'custom/header-settings',
);
$links[] = array(
'menu_name' => 'mycustommenu',
'link_path' => 'myheader/config',
'link_title' => 'Header Settings',
'options' => array(),
'weight' => 2,
'parent' => 'custom/header-settings',
);
In the above code, only menu_name is different. Rest of them are same. Is there a way to pass multiple arguments to menu_name?