You are here

function _hosting_site_list_class in Hosting 7.4

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

Define the classes that correspond to the site status.

See also

_hosting_site_status()

1 call to _hosting_site_list_class()
hosting_site_handler_field_status::render in site/includes/views/handlers/hosting_site_handler_field_status.inc
Render the field.

File

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

Code

function _hosting_site_list_class($node, $verified = NULL) {
  $status = is_numeric($node) ? $node : $node->site_status;
  $classes = hosting_site_status_codes('class');
  if ($status == HOSTING_SITE_ENABLED && $verified <= 1) {
    return 'hosting-warning';
  }
  return $classes[$status];
}