function ctools_ajax_render_error
Send an error response back via AJAX and immediately exit.
7 calls to ctools_ajax_render_error()
- ctools_access_ajax_add in includes/
context-access-admin.inc - AJAX callback to add a new access test to the list.
- ctools_access_ajax_delete in includes/
context-access-admin.inc - AJAX command to remove an access control item.
- ctools_access_ajax_edit in includes/
context-access-admin.inc - AJAX callback to edit an access test in the list.
- ctools_context_ajax_item_add in includes/
context-admin.inc - Ajax entry point to add an context
- ctools_context_ajax_item_delete in includes/
context-admin.inc - Ajax entry point to edit an item
File
-
includes/
ajax.inc, line 155
Code
function ctools_ajax_render_error($error = '') {
if (!$error) {
$error = t('An error occurred while handling the request: The server received invalid input.');
}
$commands = array();
$commands[] = ajax_command_alert($error);
print ajax_render($commands);
exit;
}