function date_menu in Date 6.2
Same name and namespace in other branches
- 5.2 date/date.module \date_menu()
- 5 date.module \date_menu()
- 7 date.module \date_menu()
Implementation of hook_menu().
File
- date/
date.module, line 22 - Defines date/time field types for the Content Construction Kit (CCK).
Code
function date_menu() {
$items = array();
// Repeat dates tab on node
if (!module_exists('date_repeat')) {
return $items;
}
$items['node/%node/repeats'] = array(
'title' => 'Repeats',
'page callback' => 'date_repeat_page',
'page arguments' => array(
1,
),
'access callback' => 'date_repeat_node',
'access arguments' => array(
1,
),
'type' => MENU_LOCAL_TASK,
);
return $items;
}