You can try 2 things<br><br>1. Try removing access callback and let the default functionality take over. Flush caches and then see if this works.<br>2. there is less possibility, but have you used drupal_access_denied in your function, if so, is any condition going wrong ?<br>
<br><div class="gmail_quote">On Sun, May 6, 2012 at 6:43 PM, Fred Jones <span dir="ltr"><<a href="mailto:fredthejonester@gmail.com" target="_blank">fredthejonester@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Here is my code:<br>
<br>
function mymod_menu(){<br>
$items['front'] = array(<br>
'title' => '',<br>
'page callback' => 'mymod_homepage',<br>
'type' => MENU_NORMAL_ITEM,<br>
'access callback' => 'user_access',<br>
'access arguments' => array('View published content'),<br>
);<br>
return $items;<br>
}<br>
<br>
and anonymous users have "View published content" checked off. With or<br>
without the "access callback" line, I get access denied for the home<br>
page for anon users. I am confused as to why. What am I missing here?<br>
<br>
Thank you,<br>
Fred<br>
<span class="HOEnZb"><font color="#888888">--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Vaibhav Jain<br>