[support] Issue with D7 access permissions

Jeff Greenberg listmail.ayendesigns at gmail.com
Tue Jul 3 02:32:59 UTC 2012


In my module, I have the following for hook_menu. The problem is that
unless I'm logged in as user 1, any attempt to enter any of the url's
results in a 403 without ever getting to any of the callback functions

function my_menu() {
  $paths = array();
  $paths['xfer/out'] = array(
    'title' => 'Transfer transaction data',
    'title callback' => FALSE,
    'page callback' => '_my_xfer_out',
    'access arguments' => TRUE,
    'file' => 'my_functions.inc',
    'type' => MENU_CALLBACK,
  );
  $paths['my/xfer/in'] = array(
    'title' => 'Transfer transaction data from',
    'title callback' => FALSE,
    'page callback' => '_my_xfer_in',
    'access arguments' => TRUE,
    'file' => 'my_functions.inc',
    'type' => MENU_CALLBACK,
  );
  $paths['my/login'] = array(
    'title' => 'Login for xfer',
    'title callback' => FALSE,
    'page callback' => '_my_login',
    'page arguments' => array('Receive data', 'Deliver data'),
    'access arguments' => TRUE,
    'file' => 'my_functions.inc',
    'type' => MENU_CALLBACK,
  );
  return $paths;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20120702/30e1dfe9/attachment.html 


More information about the support mailing list