1.20.x ajax_test.module ajax_test_error()

Menu callback; Returns Ajax element with #error property set.

File

modules/simpletest/tests/ajax_test.module, line 68
Helper module for Ajax framework tests.

Code

function ajax_test_error() {
  $message = '';
  if (!empty($_GET['message'])) {
    $message = $_GET['message'];
  }
  return array('#type' => 'ajax', '#error' => $message);
}