You are here

function dialog_command_set_dialog_title in Dialog 7.2

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

array An array suitable for use with the ajax_render() function.

File

includes/dialog.commands.inc, line 150
AJAX commands.

Code

function dialog_command_set_dialog_title($selector, $title) {
  return dialog_command_set_dialog_option($selector, 'title', $title);
}