You are here

function spaces_calendar_menu in Spaces 5

Same name and namespace in other branches
  1. 5.2 spaces_calendar/spaces_calendar.module \spaces_calendar_menu()

Implementation of hook_menu()

File

spaces_calendar/spaces_calendar.module, line 13

Code

function spaces_calendar_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/spaces/calendar',
      'title' => t('Spaces calendar settings'),
      'description' => t('Spaces calendar feature defaults.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'spaces_calendar_settings_form',
      ),
      'access' => user_access('administer group features'),
      'type' => MENU_LOCAL_TASK,
      'weight' => 1,
    );
  }
  return $items;
}