function entity_embed_command_set_dialog_title in Entity Embed 7
Creates a Drupal Ajax 'set dialog title' 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 $title: The title that will be set on the dialog.
Return value
An array suitable for use with the ajax_render() function.
File
- includes/
entity_embed.commands.inc, line 184 - AJAX commands.
Code
function entity_embed_command_set_dialog_title($selector, $title) {
return array(
'command' => 'setDialogOption',
'selector' => $selector ? $selector : '#drupal-modal',
'optionName' => 'title',
'optionValue' => $title,
);
}