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

gisle’s picture

Status: Active » Postponed (maintainer needs more info)

I 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.

gisle’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

One moth has passed, and there seem to no interest anymore. Time to close.