Project

General

Profile

« Previous | Next » 

Revision 8b3aa5d4

Added by Andreas Kohlbecker about 3 years ago

removing theme function for markers

View differences:

modules/cdm_dataportal/theme/cdm_dataportal.common.theme
141 141
  return $out;
142 142
}
143 143

  
144

  
145

  
146
/**
147
 * Theme function for CDM marker instances
148
 *
149
 * @see compose_cdm_marker();
150
 * @param array $variables
151
 *   - markerType_representation_l10n: the localized representation of the marker.markerType field
152
 */
153
function theme_cdm_marker($variables) {
154
  $class_attribute = null;
155
  //TODO class attribute hacked?, use generic drupal way?
156
  if(isset($variables['attributes']['class'])){
157
    $class_attribute = $variables['attributes']['class'];
158
  }
159
  return '<span class="' . $class_attribute . '">' . $variables['label'] . '</span>';
160
}
161

  
162 144
/* ============================ pager ============================= */
163 145

  
164 146
/**

Also available in: Unified diff