function theme_mostpopular_service_status in Drupal Most Popular 6
Same name and namespace in other branches
- 7 mostpopular.services.inc \theme_mostpopular_service_status()
1 theme call to theme_mostpopular_service_status()
File
- ./
mostpopular.admin.inc, line 492 - Defines all the administration forms for the Most Popular module.
Code
function theme_mostpopular_service_status($status) {
$out = "<span class='mostpopular--service-status mostpopular--service-status-{$status}'>";
switch ($status) {
case MostPopularService::STATUS_OK:
$out .= t('OK');
break;
case MostPopularService::STATUS_CONFIGURED:
$out .= t('Configured');
break;
default:
$out .= ' ';
}
$out .= "</span>";
return $out;
}