[support] D7Access Arguments

Fred Jones fredthejonester at gmail.com
Sun May 6 13:13:02 UTC 2012


Here is my code:

function mymod_menu(){
 $items['front'] = array(
    'title' => '',
    'page callback' => 'mymod_homepage',
    'type' => MENU_NORMAL_ITEM,
    'access callback' => 'user_access',
    'access arguments' => array('View published content'),
  );
 return $items;
}

and anonymous users have "View published content" checked off. With or
without the "access callback" line, I get access denied for the home
page for anon users. I am confused as to why. What am I missing here?

Thank you,
Fred


More information about the support mailing list