You are here

function video_menu in Video 7.2

Same name and namespace in other branches
  1. 5 video.module \video_menu()
  2. 6.5 video.module \video_menu()
  3. 6 video.module \video_menu()
  4. 6.2 video.module \video_menu()
  5. 6.3 video.module \video_menu()
  6. 6.4 video.module \video_menu()

Implements hook_menu().

File

./video.module, line 29
All module hooks implementation can be found in this file.

Code

function video_menu() {
  $items = array();
  $items['postback/jobs'] = array(
    'page callback' => 'video_transcoder_postback_jobs',
    'file' => 'video.pages.inc',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['video/transfer/%file'] = array(
    'page callback' => 'video_transfer_file',
    'page arguments' => array(
      2,
    ),
    'file' => 'video.pages.inc',
    'access callback' => 'video_transfer_access',
    'access arguments' => array(
      2,
    ),
    'type' => MENU_CALLBACK,
  );
  $items['video/browser'] = array(
    'page callback' => 'video_file_browser',
    'file' => 'video.pages.inc',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['video/embed/%/%/%/%/%'] = array(
    'page callback' => 'video_file_embed',
    'file' => 'video.pages.inc',
    'page arguments' => array(
      3,
      2,
      4,
      5,
      6,
    ),
    'access arguments' => array(
      'access content',
    ),
    // field_access() deferred to page callback
    'type' => MENU_CALLBACK,
  );
  return $items;
}