You are here

function theme_mostpopular_service_status in Drupal Most Popular 6

Same name and namespace in other branches
  1. 7 mostpopular.services.inc \theme_mostpopular_service_status()
1 theme call to theme_mostpopular_service_status()
mostpopular_services_form in ./mostpopular.admin.inc

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 .= '&nbsp;';
  }
  $out .= "</span>";
  return $out;
}