You are here

function dialog_command_display in Dialog 7

Same name and namespace in other branches
  1. 6 dialog.module \dialog_command_display()

Creates a Drupal AJAX command to place HTML within the modal and open it.

Parameters

$content: The contents of the dialog box. This can be either straight HTML, or a renderable array.

$options: An array of ui.dialog options. See the {@link http://jqueryui.com/demos/dialog/ jQuery UI Dialog} documentation for available options.

4 calls to dialog_command_display()
dialog_comment_delete in modules/dialog_comment/dialog_comment.module
Menu callback; Delete a comment.
dialog_example_ajax_callback in example/dialog_example.module
Menu callback for our AJAX
dialog_page_alter in ./dialog.module
Implementation of hook_page_alter().
dialog_user_ajax_callback in modules/dialog_user/dialog_user.module
Menu callback for our ajax links.

File

./dialog.module, line 186
The Dialog module provides an API for displaying and interacting with jQuery UI Dialog modals.

Code

function dialog_command_display($content, $options = array()) {
  return array(
    'command' => 'dialog_display',
    'content' => render($content),
    'options' => $options,
  );
}