function ctools_modal_render in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 includes/modal.inc \ctools_modal_render()
Perform a simple modal render and immediately exit.
This is primarily used for error displays, since usually modals will contain forms.
File
- includes/
modal.inc, line 232 - Implement a modal form using AJAX.
Code
function ctools_modal_render($title, $output) {
$commands = array();
$commands[] = ctools_modal_command_display($title, $output);
ctools_include('ajax');
ctools_ajax_render($commands);
}