You are here

function warden_status_page in Warden 6

Same name and namespace in other branches
  1. 7 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 16
Logic for warden output

Code

function warden_status_page() {

  // Do not cache this page.
  $GLOBALS['conf']['cache'] = 0;
  try {
    _warden_update_warden();
    _warden_json_output(array(
      'data' => 'OK',
    ));
  } catch (Exception $e) {
    drupal_json_output(array(
      'error' => 'Internal fault',
    ));
  }
}