You are here

function _hosting_site_status in Hosting 6.2

Same name and namespace in other branches
  1. 5 site/hosting_site.module \_hosting_site_status()
  2. 7.4 site/hosting_site.module \_hosting_site_status()
  3. 7.3 site/hosting_site.module \_hosting_site_status()

Define the status types of a site

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

File

site/hosting_site.module, line 584

Code

function _hosting_site_status($node) {
  $status = is_numeric($node) ? $node : $node->site_status;
  $labels = hosting_site_status_codes('label');
  return $labels[$status];
}