? .openlayers.module.swp
? 710514-activated-layers-02.patch
? 710514-activated-layers-03.patch
? 744360-openlayers_behavior_drawfeatures.js_.patch
? 744360-openlayers_behavior_drawfeatures_reroll.patch
? 744360-openlayers_behavior_drawfeatures_rerolled.patch
? 764340-zoom-to-layer-cck-13.patch
? 764340-zoom-to-layer-cck-patch-14.patch
? cleanup_openlayers.patch
? dependency-detection.patch
? dependency_detection.patch
? display_projection_fix.patch
? docs_oa
? features_dependencies.patch
? fix_multiple.patch
? maptiler_layer_type.patch
? modify_feature.diff
? multilingual.diff
? openlayers-maxextent.patch
? overlay_baselayer_unification.patch
? rmup.sh
? stash.diff
? stash.patch.2
? titles_and_translation.diff
? unification_full.patch
? vector_layer_type_property.patch
? wms_and_dependencies.patch
? includes/layer_types/multimap.inc
? includes/layer_types/multimap.js
? includes/layer_types/wms_client.inc
? js/openlayers
? modules/openlayers_cck/includes/behaviors/js/CustomEditingToolbar.js
? modules/openlayers_ui/includes/.openlayers_ui.styles.inc.swp
Index: openlayers.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/openlayers/openlayers.module,v
retrieving revision 1.69.2.67
diff -u -p -r1.69.2.67 openlayers.module
--- openlayers.module	5 May 2010 22:23:21 -0000	1.69.2.67
+++ openlayers.module	10 May 2010 22:15:58 -0000
@@ -74,20 +74,23 @@ function openlayers_ctools_plugin_api($m
  */
 function openlayers_layers_features_export($data, &$export, $module_name = '') {
   $modules = module_implements('openlayers_layer_types');
-  $layer = openlayers_layer_load(current($data));
 
-  /*
-   * ensure that modules which provide layer types are
-   * included as dependencies when the layers those 
-   * layer types generate are exported
-   */
-  foreach ($modules as $module) {
-    $layer_types = module_invoke($module, 'openlayers_layer_types');
-    $export['features']['openlayers'][current($data)] = current($data);
-
-    foreach ($layer_types as $layer_type_name => $layer_type) {
-      if ($layer->data['layer_type'] == $layer_type_name) {
-        $export['dependencies'][$module] = $module;
+  foreach($data as $datum) {
+    $layer = openlayers_layer_load($datum);
+
+    /*
+     * ensure that modules which provide layer types are
+     * included as dependencies when the layers those 
+     * layer types generate are exported
+     */
+    foreach ($modules as $module) {
+      $layer_types = module_invoke($module, 'openlayers_layer_types');
+      $export['features']['openlayers'][$datum] = $datum;
+
+      foreach ($layer_types as $layer_type_name => $layer_type) {
+        if ($layer->data['layer_type'] == $layer_type_name) {
+          $export['dependencies'][$module] = $module;
+        }
       }
     }
   }
