Closed (won't fix)
Project:
Notify
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Sep 2008 at 05:30 UTC
Updated:
26 Sep 2013 at 21:19 UTC
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?
Comments
Comment #1
gisleI haven't got the time to debug your code, but instead of using
hook_menu, you should be able to do this with the Token module.I'll keep this support request open if somebody indicates within two weeks that they're still interested in this.
However, if nobody indicates interest in two weeks, it will be closed.
Comment #2
gisleOne moth has passed, and there seem to no interest anymore. Time to close.