function ajax_command_dialog in Brightcove Video Connect 7.7
Same name and namespace in other branches
- 7.2 brightcove_field/brightcove_field.module \ajax_command_dialog()
- 7.3 brightcove_field/brightcove_field.module \ajax_command_dialog()
- 7.4 brightcove_field/brightcove_field.module \ajax_command_dialog()
- 7.5 brightcove_field/brightcove_field.module \ajax_command_dialog()
- 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:
$iframe: Optional. Boolean, if the dialog should contain an iframe or other html content
Return value
array An array suitable for use with the ajax_render() function.
4 calls to ajax_command_dialog()
- ajax_browse_video_dialog_callback in ./
brightcove.module - ajax_create_playlist_dialog_callback in ./
brightcove.module - ajax_upload_video_dialog_callback in ./
brightcove.module - brightcove_field_open_dialog in ./
brightcove.module - Page callback for 'brightcove_dialog/ajax/%/%/%/%/%/%'.
File
- ./
brightcove.module, line 1652 - 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 ajax_command_dialog($title = 'Dialog', $id = NULL, $selector = '<div>', $data, $field_rel, $settings = NULL, $iframe = FALSE) {
return [
'command' => 'ui_dialog',
'title' => $title,
'id' => $id,
'selector' => $selector,
'data' => $data,
'field_rel' => $field_rel,
'settings' => $settings,
'iframe' => $iframe,
];
}