You are here

function health_monitor_status in Health Status 7

Returns a properly formatted message from a monitor.

Parameters

string $status: Status should be HEALTH_OKAY, HEALTH_WARNING, HEALTH_ERROR, or HEALTH_UNKNOWN.

string $message: A message to show on the Health Status page.

Return value

array Returns a properly formatted response for the Health monitor.

1 call to health_monitor_status()
hook_health_monitor_MONITOR in ./health.api.php
This hook is called when the health system runs the monitors.

File

./health.module, line 208
Contains the basic hooks and function used by the Health system.

Code

function health_monitor_status($status, $message) {
  return array(
    'status' => $status,
    'message' => $message,
  );
}