menu hook implemented the wrong way?

bascostbudde - July 3, 2008 - 13:03
Project:Counter
Version:5.x-1.6
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

In my D5.7 installation the paths to counter do not show up.

Changing

  $items['admin/settings/counter'] = array(

to
  $items[] = array(
  'path' => 'admin/settings/counter',

makes that better, but the settings form is still not visible. Am I really looking at D5 code?

#1

joemurray - July 22, 2008 - 16:46
Status:active» needs review

There were other issues: page callback should have been callback, and page arguments should have been callback arguments.

This patch gets the admin/settings/counter page to come up. The block appears fine too.

AttachmentSize
counter.module.patch 631 bytes

#2

drupal-id.com - September 25, 2009 - 14:34
Status:needs review» closed

Patch applied to Drupal 6.x, please upgrade to Drupal 6.

 
 

Drupal is a registered trademark of Dries Buytaert.