function video_youtube_menu in Video 6
Same name and namespace in other branches
- 5 types/video_youtube/video_youtube.module \video_youtube_menu()
- 6.2 types/video_youtube/video_youtube.module \video_youtube_menu()
Implementation of hook_menu
File
- types/
video_youtube/ video_youtube.module, line 19 - Enable Youtube support for video module.
Code
function video_youtube_menu() {
$items = array();
$maycache = true;
if ($maycache) {
$items['node/add/video/youtube'] = array(
'title' => 'Youtube',
'access arguments' => array(
'create video',
),
);
$items['admin/settings/video/youtube'] = array(
'title' => 'Youtube',
'description' => 'Configure various settings of the video Youtube plugin.',
'access arguments' => array(
'administer site configuration',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'video_youtube_admin_settings',
),
'type' => MENU_NORMAL_ITEM,
);
}
return $items;
}