You are here

function ctools_modal_render in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 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 258
Implement a modal form using AJAX.

Code

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