function views_ajax_error in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 8.3 includes/ajax.inc \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.
File
- includes/
ajax.inc, line 234 - Handles the server side AJAX interactions of Views.
Code
function views_ajax_error($message) {
$commands = array();
$commands[] = views_ajax_command_set_form($message, t('Error'));
return $commands;
}