You are here

function _hosting_site_status in Hosting 7.3

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

Define the status types of a site

2 calls to _hosting_site_status()
hosting_site_handler_field_status::render in site/includes/views/handlers/hosting_site_handler_field_status.inc
Render the field.
hosting_site_view in site/hosting_site.nodeapi.inc
Implements hook_view().

File

site/hosting_site.module, line 611
Contains hook implementations for Hosting site module.

Code

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