You are here

function date_menu in Date 7

Same name and namespace in other branches
  1. 5.2 date/date.module \date_menu()
  2. 5 date.module \date_menu()
  3. 6.2 date/date.module \date_menu()

Implements hook_menu().

File

./date.module, line 15

Code

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

  // Repeat dates tab on entity
  if (!module_exists('date_repeat')) {
    return $items;
  }
  $items['node/%node/repeats'] = array(
    'title' => 'Repeats',
    'page callback' => 'date_repeat_page',
    'page arguments' => array(
      1,
      'node',
    ),
    'access callback' => 'date_repeat_entity',
    'access arguments' => array(
      1,
      'node',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}