function _hosting_site_list_class in Hosting 6.2
Same name and namespace in other branches
- 5 site/hosting_site.module \_hosting_site_list_class()
- 7.4 site/hosting_site.module \_hosting_site_list_class()
- 7.3 site/hosting_site.module \_hosting_site_list_class()
Define the classes that correspond to the site status.
See also
1 call to _hosting_site_list_class()
File
- site/
hosting_site.module, line 658
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) {
return 'hosting-warning';
}
return $classes[$status];
}