Posted by Matt B on September 9, 2008 at 5:30am
1 follower
| Project: | Notify |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
In the drupal 5 version of the module I had added the following to hook_menu to create a 'my notifications' link on the navigation menu:
$items[] = array('path' => "navigation/$user->uid/notify",
'title' => t('My notifications'),
'callback' => 'drupal_get_form',
'callback arguments' => array('notify_user_settings_form', $user->uid),
'access' => user_access('access notify'),
'weight' => 5,
'type' => MENU_NORMAL_ITEM,
);However, I try adding this to the drupal 6 version of the module:
$items['navigation/%user/notify'] = array(
'title' => 'My notifications',
'page callback' => 'drupal_get_form',
'page arguments' => array('notify_user_settings_form', 1),
'access callback' => 'user_access',
'access arguments' => array('access notify'),
'type' => MENU_NORMAL_ITEM,
);And the link no longer appears. Any ideas why?