function health_health_api_callback_json in Health Status 7
Implements hook_health_api_callback_METHOD().
Returns data in proper JSON format.
File
- ./
health.service.inc, line 12 - Contains functions related to getting/showing data in the API.
Code
function health_health_api_callback_json($data) {
drupal_add_http_header("Content-type", "application/json");
return drupal_json_encode($data);
}