function entity_embed_command_set_dialog_option in Entity Embed 7
Creates a Drupal Ajax 'set dialog option' command.
Parameters
string $selector: The selector of the dialog whose title will be set. If set to an empty value, the default modal dialog will be selected.
string $option_name: The name of the option to set. May be any jQuery UI dialog option. See http://api.jqueryui.com/dialog.
mixed $option_value: The value of the option to be passed to the dialog.
Return value
An array suitable for use with the ajax_render() function.
File
- includes/
entity_embed.commands.inc, line 163 - AJAX commands.
Code
function entity_embed_command_set_dialog_option($selector, $option_name, $option_value) {
return array(
'command' => 'setDialogOption',
'selector' => $selector ? $selector : '#drupal-modal',
'optionName' => $option_name,
'optionValue' => $option_value,
);
}