In my installation profile, I am trying to add a menu link for the /import
path (from feed_import module). menu_link_save()
works for all my menu paths with the exception of /import
. Anyone have ideas why?
So, this works and creates a menu path to /user
:
$link = array('menu_name' => 'menu-authenticated', 'link_path' => 'user', 'link_title' => 'Account');
menu_link_save($link);
But this does not:
$link = array('menu_name' => 'menu-authenticated', 'link_path' => 'import', 'link_title' => 'Import');
menu_link_save($link);
After installation is finished, /import
path works (feeds_import is installed and enabled in the installation profile), but the menu link was not created.
Any help would be much appreciated. Thanks!