You are here

function theme_openlayers_ui_form_projection_description in Openlayers 6.2

Same name and namespace in other branches
  1. 7.2 modules/openlayers_ui/includes/openlayers_ui.theme.inc \theme_openlayers_ui_form_projection_description()

Theme function for form description of projection

1 theme call to theme_openlayers_ui_form_projection_description()
openlayers_ui_presets_form in modules/openlayers_ui/includes/openlayers_ui.presets.inc
Menu Callback for Add Preset

File

modules/openlayers_ui/includes/openlayers_ui.theme.inc, line 26
This file holds the theme functions for openlayers ui module

Code

function theme_openlayers_ui_form_projection_description($projection_title = '', $layers = array()) {
  $output = $projection_title;
  if (count($layers)) {
    $names = implode(', ', $layers);
    $output .= " - <span class='openlayers-form-projection-description'>{$names}</span>";
  }
  return $output;
}