theme_openlayers_cck_map

openlayers/modules/openlayers_cck/openlayers_cck.module, line 285

Versions
6
theme_openlayers_cck_map($field = array(), $map = array())

Theme function for openlayers_cck_map

Code

<?php
function theme_openlayers_cck_map($field = array(), $map = array()) {  
  $output = '
    <div class="form-item openlayers-cck-widget-container">
      <label for="'. $map['id'] .'">'. $field['widget']['label'] .'</label>
      '. $map['themed'] .'
      <div class="description openlayers-cck-field-description">
        '. $field['widget']['description'] .'
      </div>
      <div class="description openlayers-cck-map-instructions">'.t('Click the tools in the upper right-hand corner of the map to switch between draw mode and zoom/pan mode. Draw your shape, double-clicking to finish. You may edit your shape using the control points. To delete a shape, select it and press the delete key. To delete a vertex hover over it and press the d key.').'</div>
      <div class="openlayers-cck-actions">
        <a href="#" id="'. $map['id'] .'-wkt-switcher" rel="'. $map['id'] .'">'. t('Show/Hide WKT Fields') .'</a>
      </div>
    </div>
  ';
  return $output;
}
?>