You are here

function ctools_ajax_command_error in Chaos Tool Suite (ctools) 6

Create a command array for the error case.

1 call to ctools_ajax_command_error()
ctools_ajax_render_error in includes/ajax.inc
Send an error response back via AJAX and immediately exit.

File

includes/ajax.inc, line 136
Utilize the CTools AJAX responder.

Code

function ctools_ajax_command_error($error = '') {
  return array(
    'command' => 'alert',
    'title' => t('Error'),
    'text' => $error ? $error : t('Server reports invalid input error.'),
  );
}