You are here

function theme_environment_indicator_switches in Environment Indicator 7.2

Theme function for listing environments.

1 theme call to theme_environment_indicator_switches()
theme_environment_indicator_indicator_name in ./environment_indicator.theme.inc
Theme function for the indicator name.

File

./environment_indicator.theme.inc, line 11
Theme implementation file.

Code

function theme_environment_indicator_switches($variables) {
  $items = $variables['switches'];
  $output = '<div class="item-list"><ul class="environment-switcher-container">';
  if (!empty($items)) {
    foreach ($items as $item) {
      $output .= '<li class="environment-switcher">' . $item['data'] . "</li>\n";
    }
  }
  $output .= '</ul></div>';
  return $output;
}