function warden_status_page in Warden 7
Same name and namespace in other branches
- 6 warden.page.inc \warden_status_page()
Page callback.
Request that the site generates its site information data and sends it to the configured Warden application.
Return value
string Return JSON formatted status message, either OK or ERROR
1 string reference to 'warden_status_page'
- warden_menu in ./
warden.module - Implements hook_menu().
File
- ./
warden.page.inc, line 17 - Logic for warden output
Code
function warden_status_page() {
drupal_page_is_cacheable(FALSE);
try {
_warden_update_warden();
drupal_json_output(array(
'data' => 'OK',
));
} catch (Exception $e) {
watchdog_exception('warden', $e);
drupal_add_http_header('Status', '500 Internal Server Error');
drupal_json_output(array(
'error' => 'Internal fault',
));
}
}