You are here

function theme_openlayers_cck_formatter_openlayers_wkt in Openlayers 6.2

Theme function for WKT CCK formatter

File

modules/openlayers_cck/includes/openlayers_cck.theme.inc, line 18
Theme functions for openlayers_cck

Code

function theme_openlayers_cck_formatter_openlayers_wkt($element) {
  $features = array();

  // Create array of $features
  foreach (element_children($element) as $delta) {
    $features[$delta] = $element[$delta]['#item']['openlayers_wkt'];
  }

  // Clean features array of empty and null values
  $features = array_filter($features);
  return array_pop($features);
}