function 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 259

Code

function ctools_modal_render($title, $output) {
    $commands = array();
    $commands[] = ctools_modal_command_display($title, $output);
    print ajax_render($commands);
}