function editor_command_editor_dialog_save in Editor 7
Creates a Drupal Ajax 'editor dialog save' command.
Parameters
string $values: The values that should be passed to the form constructor in Drupal.
Return value
array An array suitable for use with the ajax_render() function.
2 calls to editor_command_editor_dialog_save()
- editor_ckeditor_image_dialog_save in modules/
editor_ckeditor/ includes/ editor_ckeditor.pages.inc - Form AJAX callback. Sends the save editor AJAX command and closes the dialog.
- editor_ckeditor_link_dialog_save in modules/
editor_ckeditor/ includes/ editor_ckeditor.pages.inc - Form AJAX callback. Sends the save editor AJAX command and closes the dialog.
File
- includes/
editor.commands.inc, line 17 - AJAX commands.
Code
function editor_command_editor_dialog_save($values) {
return array(
'command' => 'editorDialogSave',
'values' => $values,
);
}