function ajax_command_autodialog in Auto-Dialog 7
AJAX command for show dialog.
1 call to ajax_command_autodialog()
- autodialog_deliver in ./
autodialog.module - Autodialog delivery callback.
File
- ./
autodialog.module, line 259
Code
function ajax_command_autodialog($title, $content, $options = array(), $dialog_id = NULL) {
if ($default_dialog_options = variable_get('autodialog_default_options', array())) {
$default_dialog_options = drupal_json_decode($default_dialog_options);
}
return array(
'command' => 'autodialogShow',
'title' => html_entity_decode($title, ENT_QUOTES, 'UTF-8'),
'content' => $content,
'options' => $default_dialog_options + $options,
'dialog_id' => $dialog_id ? $dialog_id : drupal_html_id('autodialog'),
);
}