function views_ajax_error

Return an AJAX error.

Parameters

string $message: The message to display.

Return value

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

Related topics

7 calls to views_ajax_error()
views_ui_add_item_form in includes/admin.inc
Form to add_item items in the views UI.
views_ui_config_item_extra_form in includes/admin.inc
Form to config_item items in the views UI.
views_ui_config_item_form in includes/admin.inc
Form to config_item items in the views UI.
views_ui_config_style_form in includes/admin.inc
Form to config_style items in the views UI.
views_ui_config_type_form in includes/admin.inc
Form to config items in the views UI.

... See full list

File

includes/ajax.inc, line 234

Code

function views_ajax_error($message) {
    $commands = array();
    $commands[] = views_ajax_command_set_form($message, t('Error'));
    return $commands;
}