You are here

function ajax_command_dialog in Brightcove Video Connect 7.2

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

Creates a Drupal Ajax 'ui_dialog' command.

The 'ui_dialog' command instructs the client to display a jQuery UI Dialog box.

This command is implemented by Drupal.ajax.prototype.commands.ui() defined in brightcove/brightcove_field/brightcove.js.

Parameters

$title: Optional. String, title of dialog.

$id: Optional. Additional id to put on dialog.

$selector: Selector of the element that should be made into a dialog.

$data: Path if $iframe is TRUE. Html if $iframe is FALSE.

$field_rel: Rel attribute of the corresponding field.

$settings: TODO

$iframe: Optional. Boolean, if the dialog should contain an iframe or other html content

Return value

An array suitable for use with the ajax_render() function.

3 calls to ajax_command_dialog()
ajax_browse_dialog_callback in brightcove_field/brightcove_field.module
ajax_upload_dialog_callback in brightcove_field/brightcove_field.module
brightcove_field_open_dialog in brightcove_field/brightcove_field.module
Page callback for 'brightcove_dialog/ajax/%/%/%/%/%/%'.

File

brightcove_field/brightcove_field.module, line 1384
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 ajax_command_dialog($title = 'Dialog', $id = NULL, $selector = '<div>', $data, $field_rel, $settings = NULL, $iframe = FALSE) {
  return array(
    'command' => 'ui_dialog',
    'title' => $title,
    'id' => $id,
    'selector' => $selector,
    'data' => $data,
    'field_rel' => $field_rel,
    'settings' => $settings,
    'iframe' => $iframe,
  );
}