Did you clear the cache after doing so? I don't think you need the 'access arguments' entry...
You might reference this for a better example, that honors the access content permissions setting.
http://api.drupal.org/api/function/hook_menu/6
Also remember to clear your cache before testing.
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Scott Sent: Wednesday, May 12, 2010 8:47 AM To: support@drupal.org Subject: Re: [support] AHAH 403 error
I've modified the code thus:
$items['a_module/js/%'] = array( 'access callback' => TRUE, 'access arguments' => array(1), 'page callback' => 'a_module_search_js', 'page arguments' => array(2), 'type' => MENU_CALLBACK, );
but it still reports a 403 error.
On Wed, 2010-05-12 at 10:41 -0400, Earnie Boyd wrote:
Scott wrote:
$items['a_module/js/%'] = array( 'page callback' => 'a_module_search_js', 'page arguments' => array(2), 'type' => MENU_CALLBACK, );
You need to supply the access callback and/or access arguments. You could simply add 'access callback' => TRUE if you want everyone accessing it all the time.
-- Earnie -- http://progw.com -- http://www.for-my-kids.com
-- [ Drupal support list | http://lists.drupal.org/ ]