You are here

function brightcove_field_open_dialog in Brightcove Video Connect 7.3

Same name and namespace in other branches
  1. 7.7 brightcove.module \brightcove_field_open_dialog()
  2. 7.2 brightcove_field/brightcove_field.module \brightcove_field_open_dialog()
  3. 7.4 brightcove_field/brightcove_field.module \brightcove_field_open_dialog()
  4. 7.5 brightcove_field/brightcove_field.module \brightcove_field_open_dialog()
  5. 7.6 brightcove.module \brightcove_field_open_dialog()

Page callback for 'brightcove_dialog/ajax/%/%/%/%/%/%'.

1 string reference to 'brightcove_field_open_dialog'
brightcove_field_menu in brightcove_field/brightcove_field.module
Implementation of hook_menu().

File

brightcove_field/brightcove_field.module, line 137
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_open_dialog($type, $width, $height, $entity_type, $entity_id, $field_name, $delta) {
  return array(
    '#type' => 'ajax',
    '#commands' => array(
      ajax_command_dialog(t('Watch @type', array(
        '@type' => t($type),
      )), 'player-dialog', '<div>', url("brightcove_field_player/{$type}/{$entity_type}/{$entity_id}/{$field_name}/{$delta}"), $field_name, array(
        'width' => $width,
        'height' => $height,
      ), TRUE),
    ),
  );
}