Access denied hook_menu Drupal 7 I am trying my first module on Drupal 7 on the behalf of experience on Drupal 6.

function custom_work_menu(){
  $items = array();

  $items['mypage']=array(
    'title'=&gt;t('Title'),
    'page callback' =&gt; 'drupal_get_form',
    'page arguments' =&gt; array('custom_work_mypage_view'),
    'access arguments' =&gt; array('access content'),
  );

  return $items;
}


Upon accessing my page, I get access denied. What am I missing here?
Revised:

Your code looks right

3 Things could be the problem


'mypage' could be a banned link.
you don't have access to 'custom_work_mypage_view' form.
Clear your cache.   Without the 'access argument' line you will get access denied.  If you added it then save your file, you will still get access denied until you clear your cache.


My gut feeling is #3.