function ctools_modal_command_display in Chaos Tool Suite (ctools) 7
Same name and namespace in other branches
- 6 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 121 - Implement a modal form using AJAX.
Code
function ctools_modal_command_display($title, $html) {
if (is_array($html)) {
$html = drupal_render($html);
}
return array(
'command' => 'modal_display',
'title' => $title,
'output' => $html,
);
}