1 ajax.inc ajax_command_set_dialog_title($selector, $title)

Provides an AJAX command that sets a dialog title.


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.

Related topics


core/includes/ajax.inc, line 1457
Functions for use with Backdrop's Ajax framework.


function ajax_command_set_dialog_title($selector, $title) {
  return ajax_command_set_dialog_option($selector, 'title', $title);