hook_menu not adjusted for Drupal 6

klapper - July 22, 2008 - 10:16
Project:Persistent Login
Version:6.x-1.4-beta2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

There is a parameter change in Drupal 6 for hook_menu.
I guess the code should like this:

function persistent_login_menu() {
  $items = array();
  $items['persistent_login/erase'] = array(
    'callback' => 'persistent_login_erase',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK);
  $items['admin/settings/persistent_login'] = array(
    'title' => t('Persistent Login'),
    'description' => t('Control Persistent Login session lifetime and restricted pages.'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array('persistent_login_admin_settings'),
    'access arguments' => array('administer Persistent Login'),
    'type' => MENU_NORMAL_ITEM);
  return $items;
}

Maybe, someone who has access to CVS may add and test this.

#1

markus_petrux - September 21, 2008 - 12:19
Status:active» duplicate

There is another issue that has a bit more information:

http://drupal.org/node/254506

 
 

Drupal is a registered trademark of Dries Buytaert.