You are here

function pretty_calendar_menu in Pretty Calendar 7

Implements hook_menu().

File

./pretty_calendar.module, line 11
Simple nice calendar module that displays the materials by date.

Code

function pretty_calendar_menu() {
  $items = array();
  $items['calendar/%/%/%'] = array(
    'title' => 'All activities for the day',
    'page callback' => 'pretty_calendar_day_nodes',
    'page arguments' => array(
      1,
      2,
      3,
    ),
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  $items['calendar_get/%'] = array(
    'title' => 'Calendar',
    'page callback' => 'pretty_calendar_content_loader',
    'page arguments' => array(
      1,
    ),
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['calendar_links/%/%/%'] = array(
    'title' => 'Calendar',
    'page callback' => 'pretty_calendar_links_loader',
    'page arguments' => array(
      1,
      2,
      3,
    ),
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['calendar'] = array(
    'title' => 'Calendar',
    'page callback' => 'pretty_calendar_node_list',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => -50,
  );
  return $items;
}