$items[] = array( 'path' => 'admin/settings/mymodule', 'title' => 'mymodule settings', 'description' =>'mymodule settings control', 'page callback' => 'drupal_get_form', 'page arguments' => array('mymodule_admin'), 'access callback' => array('access administration pages'), ); This item shows up on Admin Settings page But when I click it, the page dont change - remains on Settings! Should show my form... Whats wrong? Feijó
The 'path' argument pretty goes away completely. Your statement should probably start with something like: $items['admin/settings/mymodule'] = array( Read the documentation for the D6 menu system and the included D5 to D6 upgrade information here: http://drupal.org/node/102338
I made the suggested changes, but no effect... $items['admin/settings/mymodule'] = array(...); Still apears on settings page, when I click it, remains in the same page :( Feijó ----- Original Message ----- From: "Chris Johnson" <cxjohnson@gmail.com> To: <development@drupal.org> Sent: Friday, January 04, 2008 1:27 PM Subject: Re: [development] Menu Admin Settings no D6
The 'path' argument pretty goes away completely.
Your statement should probably start with something like:
$items['admin/settings/mymodule'] = array(
Read the documentation for the D6 menu system and the included D5 to D6 upgrade information here: http://drupal.org/node/102338
Did you empty Drupal's cache (easiest to do with the devel module) after making the change? Alessandro Feijó wrote:
I made the suggested changes, but no effect...
$items['admin/settings/mymodule'] = array(...);
Still apears on settings page, when I click it, remains in the same page :(
Feijó
----- Original Message ----- From: "Chris Johnson" <cxjohnson@gmail.com> To: <development@drupal.org> Sent: Friday, January 04, 2008 1:27 PM Subject: Re: [development] Menu Admin Settings no D6
The 'path' argument pretty goes away completely.
Your statement should probably start with something like:
$items['admin/settings/mymodule'] = array(
Read the documentation for the D6 menu system and the included D5 to D6 upgrade information here: http://drupal.org/node/102338
-- Sean Robertson Web Developer NGP Software, Inc. seanr@ngpsoftware.com (202) 686-9330 http://www.ngpsoftware.com
No, I just visit admin/build/modules, that make all my menus changes commit. Feijó ----- Original Message ----- From: "Sean Robertson" <seanr@ngpsoftware.com> To: <development@drupal.org> Sent: Friday, January 04, 2008 2:02 PM Subject: Re: [development] Menu Admin Settings no D6
Did you empty Drupal's cache (easiest to do with the devel module) after making the change?
Alessandro Feijó wrote:
I made the suggested changes, but no effect...
$items['admin/settings/mymodule'] = array(...);
Still apears on settings page, when I click it, remains in the same page :(
Feijó
----- Original Message ----- From: "Chris Johnson" <cxjohnson@gmail.com> To: <development@drupal.org> Sent: Friday, January 04, 2008 1:27 PM Subject: Re: [development] Menu Admin Settings no D6
The 'path' argument pretty goes away completely.
Your statement should probably start with something like:
$items['admin/settings/mymodule'] = array(
Read the documentation for the D6 menu system and the included D5 to D6 upgrade information here: http://drupal.org/node/102338
-- Sean Robertson Web Developer NGP Software, Inc. seanr@ngpsoftware.com (202) 686-9330 http://www.ngpsoftware.com
Solved!! I had another wrong argument 'access callback' => array('access administration pages'), should be 'access arguments' => array('access administration pages'), regards Feijó ----- Original Message ----- From: "Chris Johnson" <cxjohnson@gmail.com> To: <development@drupal.org> Sent: Friday, January 04, 2008 1:27 PM Subject: Re: [development] Menu Admin Settings no D6
The 'path' argument pretty goes away completely.
Your statement should probably start with something like:
$items['admin/settings/mymodule'] = array(
Read the documentation for the D6 menu system and the included D5 to D6 upgrade information here: http://drupal.org/node/102338
participants (3)
-
Alessandro Feijó -
Chris Johnson -
Sean Robertson