function ctools_automodal_page_render in CTools Auto-modal 7
Render a page into an AJAX display.
1 call to ctools_automodal_page_render()
- ctools_automodal_get_page in ./
ctools_automodal.module - Display a normal Drupal page using CTools modal.
File
- ./
ctools_automodal.module, line 184
Code
function ctools_automodal_page_render($output) {
if (is_array($output)) {
$output = drupal_render($output);
}
$title = drupal_get_title();
// If there are messages for the form, render them.
if ($messages = theme('status_messages')) {
$output = '<div class="messages">' . $messages . '</div>' . $output;
}
$commands = array();
$commands[] = ctools_modal_command_display($title, $output);
return $commands;
}