I am using hook_menu() to generate a series of MENU_CALLBACKS for processing data at various points in my sites operations. However, while these work for the admin, when trying to access the pages I get the following error message:
You are not authorized to access this page.
I am trying to get this so that the pages can be reached by all users (one is used for submitting a form and processing the results), the other is used for logging outgoing data. The code is as follows:
function modulename_menu() {
$items = array();
$items['data/update'] = array(
'page callback' => 'dataupdate',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['onthewayout/forward'] = array(
'page callback' => 'register_click',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
return $items;
}