You are here

function video_youtube_menu in Video 5

Same name and namespace in other branches
  1. 6 types/video_youtube/video_youtube.module \video_youtube_menu()
  2. 6.2 types/video_youtube/video_youtube.module \video_youtube_menu()

Implementation of hook_menu

File

types/video_youtube/video_youtube.module, line 18
Enable Youtube support for video module.

Code

function video_youtube_menu($maycache) {
  $items = array();
  if ($maycache) {
    $items[] = array(
      'path' => 'node/add/video/youtube',
      'title' => t('Youtube'),
      'access' => user_access('create video'),
    );
    $items[] = array(
      'path' => 'admin/settings/video/youtube',
      'title' => t('Youtube'),
      'description' => t('Configure various settings of the video Youtube plugin.'),
      'access' => user_access('administer site configuration'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'video_youtube_admin_settings',
      ),
      'type' => MENU_NORMAL_ITEM,
    );
  }
  return $items;
}