You are here

function brightcove_menu in Brightcove Video Connect 7.4

Same name and namespace in other branches
  1. 6.2 brightcove.module \brightcove_menu()
  2. 6 brightcove.module \brightcove_menu()
  3. 7.7 brightcove.module \brightcove_menu()
  4. 7.2 brightcove.module \brightcove_menu()
  5. 7.3 brightcove.module \brightcove_menu()
  6. 7.5 brightcove.module \brightcove_menu()
  7. 7.6 brightcove.module \brightcove_menu()

Implements hook_menu().

File

./brightcove.module, line 51
Brightcove module is an integration layer between any modules using Brightcove API. It makes all necessary checks for the API and makes settings available to the user.

Code

function brightcove_menu() {
  $items = array();
  $base = 'admin/config/media/brightcove';
  $items['brightcove/autocomplete/videos'] = array(
    'title' => 'Video autocomplete',
    'description' => 'Callback function for listing videos in autocomplete fields',
    'type' => MENU_CALLBACK,
    'page callback' => 'brightcove_autocomplete_videos',
    'access arguments' => array(
      'browse videos',
    ),
  );
  $items[$base] = array(
    'title' => 'Brightcove settings',
    'description' => 'Configure Brigthcove integration, api keys, player settings, upload settings.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'brightcove_admin_settings',
    ),
    'type' => MENU_NORMAL_ITEM,
    'access arguments' => array(
      'administer brightcove settings',
    ),
    'file' => 'brightcove.admin.inc',
  );
  $items["{$base}/general"] = array(
    'title' => 'General',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'access arguments' => array(
      'administer brightcove settings',
    ),
  );
  $items["{$base}/playlist"] = array(
    'title' => 'Playlists',
    'page callback' => 'brightcove_playlist_overview_page',
    'type' => MENU_LOCAL_TASK,
    'file' => 'brightcove.playlist.inc',
    'access arguments' => array(
      'administer brightcove playlists',
    ),
  );
  $items["{$base}/playlist/add"] = array(
    'title' => 'Add playlist',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'brightcove_playlist_edit_form',
    ),
    'type' => MENU_LOCAL_ACTION,
    'file' => 'brightcove.playlist.inc',
    'access arguments' => array(
      'administer brightcove playlists',
    ),
  );
  $items["{$base}/playlist/%brightcove_playlist/edit"] = array(
    'title callback' => 'brightcove_playlist_title',
    'title arguments' => array(
      5,
    ),
    'page callback' => 'brightcove_playlist_edit_page',
    'page arguments' => array(
      5,
    ),
    'type' => MENU_CALLBACK,
    'file' => 'brightcove.playlist.inc',
    'access arguments' => array(
      'administer brightcove playlists',
    ),
  );
  $items["{$base}/playlist/%brightcove_playlist/delete"] = array(
    'title' => 'Playlists',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'brightcove_playlist_delete_form',
      5,
    ),
    'type' => MENU_CALLBACK,
    'file' => 'brightcove.playlist.inc',
    'access arguments' => array(
      'administer brightcove playlists',
    ),
  );
  return $items;
}