You are here

function brightcove_cck_menu in Brightcove Video Connect 6

Same name and namespace in other branches
  1. 6.2 brightcove_cck/brightcove_cck.module \brightcove_cck_menu()

Implementation of hook_menu().

File

brightcove_cck/brightcove_cck.module, line 18
Brightcove CCK module provides a Content Construction Kit module to developers, allowing them to browse videos in their Brightcove Studio and upload them.

Code

function brightcove_cck_menu() {
  $items = array();
  $items['brightcove_cck/autocomplete/%/%/%'] = array(
    'title' => 'Brightcove CCK autocomplete',
    'page callback' => 'brightcove_cck_autocomplete',
    'page arguments' => array(
      2,
      4,
    ),
    'access callback' => 'brightcove_cck_browse_access',
    'access arguments' => array(
      3,
      2,
    ),
    'file' => 'brightcove_cck.browse.inc',
    'type' => MENU_CALLBACK,
  );
  $items['brightcove_cck/browse/%/%'] = array(
    'title' => 'Brightcove Videos Browser',
    'page arguments' => array(
      2,
      3,
    ),
    'page callback' => 'brightcove_cck_browse',
    'access callback' => 'brightcove_cck_browse_access',
    'access arguments' => array(
      2,
      3,
    ),
    'file' => 'brightcove_cck.browse.inc',
    'type' => MENU_CALLBACK,
  );
  $items['brightcove_cck/upload/%/%'] = array(
    'title' => 'Upload video to Brightcove',
    'page arguments' => array(
      2,
      3,
    ),
    'page callback' => 'brightcove_cck_upload',
    'access callback' => 'brightcove_cck_browse_access',
    'access arguments' => array(
      2,
      3,
    ),
    'file' => 'brightcove_cck.browse.inc',
    'type' => MENU_CALLBACK,
  );
  $items['brightcove_cck_player/%node/%/%'] = array(
    'title' => 'Brightcove Videos Window Player',
    'page callback' => 'brightcove_cck_player',
    'page arguments' => array(
      1,
      2,
      3,
    ),
    'access callback' => 'node_access',
    'access arguments' => array(
      'view',
      1,
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}