You are here

function _hosting_site_list_class in Hosting 5

Same name and namespace in other branches
  1. 6.2 site/hosting_site.module \_hosting_site_list_class()
  2. 7.4 site/hosting_site.module \_hosting_site_list_class()
  3. 7.3 site/hosting_site.module \_hosting_site_list_class()
1 call to _hosting_site_list_class()
hosting_site_list in site/hosting_site.module
Display a list of created sites on the front page @TODO Add ability to filter by additional fields @TODO Add paging.

File

site/hosting_site.module, line 664

Code

function _hosting_site_list_class($node) {
  static $classes = array(
    HOSTING_SITE_QUEUED => "hosting-queue",
    HOSTING_SITE_ENABLED => "hosting-success",
    HOSTING_SITE_DELETED => "hosting-error",
    HOSTING_SITE_DISABLED => "hosting-error",
  );
  if ($node->site_status == HOSTING_SITE_ENABLED && !$node->verified) {
    return 'hosting-warning';
  }
  return $classes[$node->site_status];
}