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 |
Jump to:
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
There is another issue that has a bit more information:
http://drupal.org/node/254506