Dear all, I have this hook_menu in my cronmonitor.module file function cronmonitor_menu() { $items['*admin/config/cronmonitor']* = array( 'title' => 'Cron Monitor Settings', 'type' => 'MENU_NORMAL_ITEM', 'page callback' => 'drupal_get_form', 'page arguments' => array('cronmonitor_admin_form'), 'access arguments' => array('administer cronmonitor'), // in this array is the name of the permission ); return $items; } and in the cronmonitor.info file: configure = admin/config/cronmonitor Yet when I click on configure to the left of the misted module on the modules page and after enabling the module I only get to admin/config page rather than admin/config/crononitor page. We have tried on 3 different sites. This is from a tutorial on daily dose of drupal. Why don't I get to the cronmonitor page? -- *Anthony Stefan Maciejowski* *www.Tony-Mac.com*
'type' => 'MENU_NORMAL_ITEM', MENU_NORMAL_ITEM is a constant, therefor it should not be inside of quotes. Also make sure the user you are logged in as has the administer cronmonitor permission in their role. Jamie Holly http://www.intoxination.net http://www.hollyit.net On 3/24/2013 7:39 PM, Anthony wrote:
Dear all, I have this hook_menu in my cronmonitor.module file
function cronmonitor_menu() { $items['*admin/config/cronmonitor']* = array( 'title' => 'Cron Monitor Settings', 'type' => 'MENU_NORMAL_ITEM', 'page callback' => 'drupal_get_form', 'page arguments' => array('cronmonitor_admin_form'), 'access arguments' => array('administer cronmonitor'), // in this array is the name of the permission ); return $items; }
and in the cronmonitor.info <http://cronmonitor.info> file:
configure = admin/config/cronmonitor
Yet when I click on configure to the left of the misted module on the modules page and after enabling the module I only get to admin/config page rather than admin/config/crononitor page.
We have tried on 3 different sites. This is from a tutorial on daily dose of drupal.
Why don't I get to the cronmonitor page?
--
*/Anthony Stefan Maciejowski/*
*/www.Tony-Mac.com <http://www.Tony-Mac.com>/*
Perfect. Thanks Jamie. I really should be more careful. Look 8 times used to be my motto. tony mac is building web sites. -----Original Message----- From: Jamie Holly <hovercrafter@earthlink.net> Sender: support-bounces@drupal.org Date: Sun, 24 Mar 2013 19:57:51 To: <support@drupal.org> Reply-To: support@drupal.org Subject: Re: [support] Callback question -- [ Drupal support list | http://lists.drupal.org/ ]
participants (3)
-
Anthony -
Jamie Holly -
Tony MAC