Why doesn't this work?
/**
* Implementation of hook_menu()
*/
function gt_calendar_menu($may_cache) {
global $user;
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'admin/settings/gt_calendar',
'title' => t('calendar'),
'callback' => 'gt_calendar_admin',
'access' => user_access('administer calendar')
);
$items[] = array(
'path' => 'gt_calendar',
'title' => t('Calendar'),
'callback' => 'gt_calendar_page',
'access' => user_access('access calendar'),
'type' => MENU_CALLBACK
);
/* used in block view only */
$items[] = array(
'path' => 'gt_calendar/add',
'title' => t('Add an Event'),
'callback' => 'gt_calendar_add',
'access' => user_access('add events'),
'type' => MENU_CALLBACK
);
$items[] = array(
'path' => 'gt_calendar/edit',
'title' => t('Edit an Event'),
'callback' => 'gt_calendar_edit',
'access' => user_access('edit own events'),
'type' => MENU_CALLBACK
);
$items[] = array(
'path' => 'gt_calendar/delete',
'title' => t('Delete an Event'),
'callback' => 'gt_calendar_delete',
'access' => user_access('edit own events'),
'type' => MENU_CALLBACK
);
}
else {
theme_add_style(drupal_get_path('module', 'gt_calendar') .'/gt_calendar.css');
}
return $items;
}
If I go to "gt_calendar", then gt_calendar_page is correctly accessed.