You are here

function _hosting_server_status in Hosting 7.4

Same name and namespace in other branches
  1. 7.3 server/hosting_server.module \_hosting_server_status()

Return the appropriate status label.

2 calls to _hosting_server_status()
hosting_server_handler_field_status::render in server/includes/views/handlers/hosting_server_handler_field_status.inc
Render the field.
hosting_server_view in server/hosting_server.module
Implements hook_view().

File

server/hosting_server.module, line 70

Code

function _hosting_server_status($status) {
  static $labels;
  $labels = _hosting_server_status_codes();
  return is_object($status) ? $labels[$status->server_status]['label'] : $labels[$status]['label'];
}