function dialog_form_render in Dialog 6
Render a form into an AJAX display.
1 call to dialog_form_render()
- dialog_form_wrapper in ./
dialog.module - Wrap a form so that we can use it properly with AJAX. Essentially if the form wishes to render, it automatically does that, otherwise it returns so we can see submission results.
File
- ./
dialog.module, line 157
Code
function dialog_form_render($form_state, $output) {
$title = empty($form_state['title']) ? '' : $form_state['title'];
// If there are messages for the form, render them.
if ($messages = theme('status_messages')) {
$output = $messages . $output;
}
$commands = array();
if (isset($form_state['js settings'])) {
$commands[] = ctools_ajax_command_settings($form_state['js settings']);
}
$commands[] = dialog_command_display($title, $output);
return $commands;
}