I've hit a wall with trying to debug this and I hope someone out there can give me a hand. I've created a custom module where hook_menu is adding some items to a custom menu and some other local tasks. The links fire fine, they're in the database properly as far as I can tell, other hook_menu local tasks are showing under their respective areas but these two are just not doing it. When I pull up Volt User Menu in the menu admin it says "There are no menu links yet." But when I try to delete the menu it says "Warning: There are currently 2 menu links in Volt User Menu. They will be deleted (system-defined links will be reset)." So what is it Drupal are they there are not. Anyone have any ideas how I can debug this?
SELECT m.path FROM `menu_router` m WHERE m.path LIKE 'volt%';
+---------------------------------+
| path |
+---------------------------------+
| volt-user/%/volt/accountability |
| volt-user/%/volt/workout |
+---------------------------------+
SELECT m.menu_name FROM `menu_custom` m WHERE m.menu_name LIKE 'volt%';
+----------------+
| menu_name |
+----------------+
| volt-user-menu |
+----------------+
SELECT m.menu_name, m.mlid, m.link_path FROM `menu_links` m WHERE m.menu_name LIKE 'volt%';
+----------------+------+---------------------------------+
| menu_name | mlid | link_path |
+----------------+------+---------------------------------+
| volt-user-menu | 1158 | volt-user/%/volt/accountability |
| volt-user-menu | 1159 | volt-user/%/volt/workout |
+----------------+------+---------------------------------+<?php
function volt_user_update_7000() {
$menu = array();
$menu['menu_name'] = 'volt-user-menu';
$menu['title'] = 'Volt User Menu';
menu_save($menu);
return true;
}
?><?php
$items['volt-user/%user/volt/workout'] = array(
'title' => 'Workout',
'page arguments' => array(1,4),
'page callback' => 'volt_user_get_workout',
'access arguments' => array('access content'),
'access callback' => 'user_access',
'menu_name' => 'volt-user-menu',
'type' => MENU_NORMAL_ITEM
);
$items['volt-user/%user/volt/accountability'] = array(
'title' => 'Accountability',
'page arguments' => array(1,4),
'page callback' => 'volt_user_get_accountabilitiy',
'access arguments' => array('access content'),
'access callback' => 'user_access',
'menu_name' => 'volt-user-menu',
'type' => MENU_NORMAL_ITEM
);
return $items;
?>