1 ajax.inc | ajax_command_set_dialog_title($selector, $title) |
Provides an AJAX command that sets a dialog title.
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.
Related topics
File
- core/
includes/ ajax.inc, line 1457 - Functions for use with Backdrop's Ajax framework.
Code
function ajax_command_set_dialog_title($selector, $title) {
return ajax_command_set_dialog_option($selector, 'title', $title);
}