You are here

function ctools_ajax_render_error in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 includes/ajax.inc \ctools_ajax_render_error()

Send an error response back via AJAX and immediately exit.

6 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_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
ctools_context_ajax_item_edit in includes/context-admin.inc
Ajax entry point to edit an item

... See full list

File

includes/ajax.inc, line 155
Set this so we can tell that the file has been included at some point.

Code

function ctools_ajax_render_error($error = '') {
  $commands = array();
  $commands[] = ajax_command_alert($error);
  print ajax_render($commands);
  exit;
}