You are here

function ctools_modal_command_display in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 7 includes/modal.inc \ctools_modal_command_display()

Place HTML within the modal.

Parameters

$title: The title of the modal.

$html: The html to place within the modal.

3 calls to ctools_modal_command_display()
ctools_ajax_sample_login in ctools_ajax_sample/ctools_ajax_sample.module
A modal login callback.
ctools_modal_form_render in includes/modal.inc
Render a form into an AJAX display.
ctools_modal_render in includes/modal.inc
Perform a simple modal render and immediately exit.

File

includes/modal.inc, line 113
Implement a modal form using AJAX.

Code

function ctools_modal_command_display($title, $html) {
  return array(
    'command' => 'modal_display',
    'title' => $title,
    'output' => $html,
  );
}