function ajax_test_error
Menu callback; Returns Ajax element with #error property set.
1 string reference to 'ajax_test_error'
- ajax_test_menu in modules/
simpletest/ tests/ ajax_test.module - Implements hook_menu().
File
-
modules/
simpletest/ tests/ ajax_test.module, line 57
Code
function ajax_test_error() {
$message = '';
if (!empty($_GET['message'])) {
$message = $_GET['message'];
}
return array(
'#type' => 'ajax',
'#error' => $message,
);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.