You are here

function ajax_test_render_error in SimpleTest 7

Menu callback; Invokes ajax_render_error().

Optionally passes $_GET['message'] to ajax_render_error().

1 string reference to 'ajax_test_render_error'
ajax_test_menu in tests/ajax_test.module
Implement hook_menu().

File

tests/ajax_test.module, line 51
Helper module for AJAX framework tests.

Code

function ajax_test_render_error() {
  $message = '';
  if (!empty($_GET['message'])) {
    $message = $_GET['message'];
  }
  ajax_render_error($message);
}