function dialog_command_set_dialog_option in Dialog 7.2
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
array An array suitable for use with the ajax_render() function.
1 call to dialog_command_set_dialog_option()
- dialog_command_set_dialog_title in includes/
dialog.commands.inc - Creates a Drupal Ajax 'set dialog title' command.
File
- includes/
dialog.commands.inc, line 129 - AJAX commands.
Code
function dialog_command_set_dialog_option($selector, $option_name, $option_value) {
return array(
'command' => 'setDialogOption',
'selector' => $selector ? $selector : '#drupal-modal',
'optionName' => $option_name,
'optionValue' => $option_value,
);
}