function entity_embed_command_close_modal_dialog in Entity Embed 7
Creates a Drupal Ajax 'close modal dialog' command.
Parameters
bool $persist: (optional) Whether to persist the dialog in the DOM or not.
Return value
An array suitable for use with the ajax_render() function.
1 call to entity_embed_command_close_modal_dialog()
- submitEmbedForm in ./
entity_embed.admin.inc - Form submission handler embeds selected entity in WYSIWYG.
File
- includes/
entity_embed.commands.inc, line 53 - AJAX commands.
Code
function entity_embed_command_close_modal_dialog($persist = FALSE) {
return array(
'command' => 'closeDialog',
'selector' => '#drupal-modal',
'persist' => $persist,
);
}