You are here

function theme_openlayers_ui_form_projection_description in Openlayers 7.2

Same name and namespace in other branches
  1. 6.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_maps_ui::edit_form in modules/openlayers_ui/plugins/export_ui/openlayers_maps_ui.class.php
Provide the actual editing form.

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($args) {
  $output = $args['projection']
    ->getLocalizedMessage();
  if (count($args['available_layers'])) {
    $names = implode(', ', $args['available_layers']);
    $output .= " - <span class='openlayers-form-projection-description'>{$names}</span>";
  }
  return $output;
}