You are here

function _hosting_site_status in Hostmaster (Aegir) 6

Define the status types of a site

2 calls to _hosting_site_status()
hosting_site_view in modules/hosting/site/hosting_site.nodeapi.inc
Implementation of hook_view().
views_handler_field_hosting_site_status::render in modules/hosting/site/views_handler_field_hosting_site_status.inc

File

modules/hosting/site/hosting_site.module, line 444

Code

function _hosting_site_status($node) {
  $status = is_numeric($node) ? $node : $node->site_status;
  static $labels = array(
    HOSTING_SITE_QUEUED => "Queued",
    HOSTING_SITE_ENABLED => "Enabled",
    HOSTING_SITE_DELETED => "Deleted",
    HOSTING_SITE_DISABLED => "Disabled",
  );
  return $labels[$status];
}