function brightcove_field_menu in Brightcove Video Connect 7.4
Same name and namespace in other branches
- 7.2 brightcove_field/brightcove_field.module \brightcove_field_menu()
- 7.3 brightcove_field/brightcove_field.module \brightcove_field_menu()
- 7.5 brightcove_field/brightcove_field.module \brightcove_field_menu()
Implementation of hook_menu().
File
- brightcove_field/
brightcove_field.module, line 39 - Brightcove field module provides a Content Construction Kit module to developers, allowing them to browse videos in their Brightcove Studio and upload them.
Code
function brightcove_field_menu() {
$items = array();
// bc object type, entity type, field name
$items['brightcove_field/autocomplete/%/%/%'] = array(
'title' => 'Brightcove field autocomplete',
'page callback' => 'brightcove_field_autocomplete',
'page arguments' => array(
2,
4,
6,
),
'access arguments' => array(
'browse videos',
),
'file' => 'brightcove_field.browse.inc',
'type' => MENU_CALLBACK,
);
// bc object type, entity type, field name, entity id or bundle
$items['brightcove_field/browse/%'] = array(
'title' => 'Brightcove Videos Browser',
'page arguments' => array(
2,
),
'page callback' => 'brightcove_field_browse',
'delivery callback' => 'brightcove_field_deliver_dialog',
'access arguments' => array(
'browse videos',
),
'file' => 'brightcove_field.browse.inc',
'type' => MENU_CALLBACK,
);
// entity type, field name, entity id or bundle
$items['brightcove_field/upload'] = array(
'title' => 'Upload video to Brightcove',
'page arguments' => array(),
'page callback' => 'brightcove_field_upload',
'delivery callback' => 'brightcove_field_deliver_dialog',
'access arguments' => array(
'upload videos',
),
'file' => 'brightcove_field.browse.inc',
'type' => MENU_CALLBACK,
);
// entity type, field name, entity id or bundle
$items['brightcove_field/create'] = array(
'title' => 'Upload video to Brightcove',
'page arguments' => array(),
'page callback' => 'brightcove_field_create',
'delivery callback' => 'brightcove_field_deliver_dialog',
'access arguments' => array(
'browse playlists',
),
'file' => 'brightcove_field.browse.inc',
'type' => MENU_CALLBACK,
);
// entity type, entity id, field name, delta
$items['brightcove_field_player/%/%/%/%/%'] = array(
'title' => 'Brightcove Videos Window Player',
'page callback' => 'brightcove_field_player',
'page arguments' => array(
1,
2,
3,
4,
5,
),
'access arguments' => array(
'browse videos',
),
'delivery callback' => 'brightcove_field_deliver_dialog',
'type' => MENU_CALLBACK,
);
// width, height, entity_type, entity_id, field_name, delta
$items['brightcove_dialog/ajax/%/%/%/%/%/%/%'] = array(
'title' => '',
'page callback' => 'brightcove_field_open_dialog',
'page arguments' => array(
2,
3,
4,
5,
6,
7,
8,
),
'access arguments' => array(
'browse videos',
),
'delivery callback' => 'ajax_deliver',
'type' => MENU_CALLBACK,
);
return $items;
}