1 ajax_test.module | ajax_test_error() |
Menu callback; Returns Ajax element with #error property set.
File
- core/
modules/ simpletest/ tests/ ajax_test.module, line 67 - 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);
}