function brightcove_field_open_dialog in Brightcove Video Connect 7.6
Same name and namespace in other branches
- 7.7 brightcove.module \brightcove_field_open_dialog()
- 7.2 brightcove_field/brightcove_field.module \brightcove_field_open_dialog()
- 7.3 brightcove_field/brightcove_field.module \brightcove_field_open_dialog()
- 7.4 brightcove_field/brightcove_field.module \brightcove_field_open_dialog()
- 7.5 brightcove_field/brightcove_field.module \brightcove_field_open_dialog()
Page callback for 'brightcove_dialog/ajax/%/%/%/%/%/%'.
1 string reference to 'brightcove_field_open_dialog'
- brightcove_menu in ./
brightcove.module - Implements hook_menu().
File
- ./
brightcove.module, line 994 - 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_field_open_dialog($type, $width, $height, $entity_type, $entity_id, $field_name, $delta) {
return [
'#type' => 'ajax',
'#commands' => [
ajax_command_dialog(t('Watch @type', [
'@type' => t($type),
]), 'player-dialog', '<div>', url("brightcove_field_player/{$type}/{$entity_type}/{$entity_id}/{$field_name}/{$delta}"), $field_name, [
'width' => $width,
'height' => $height,
], TRUE),
],
];
}