commit 8a55ee5380da87857afd0e2daf4c220685070b0a
Author: dasjo <dasjogibtsnet@gmail.com>
Date:   Thu Sep 27 11:08:21 2012 +0200

    Added leaflet_views_alter_points_data patch.

diff --git a/leaflet_views/leaflet_views_plugin_style.inc b/leaflet_views/leaflet_views_plugin_style.inc
index 70fd1d1..5d12101 100644
--- a/leaflet_views/leaflet_views_plugin_style.inc
+++ b/leaflet_views/leaflet_views_plugin_style.inc
@@ -207,7 +207,13 @@ class leaflet_views_plugin_style extends views_plugin_style {
             $raw_data[] = $item['raw'];
           }
           $points = leaflet_process_geofield($raw_data);
-          
+
+          // Let modules modify the points data.
+          foreach (module_implements('leaflet_views_alter_points_data') as $module) {
+            $function = $module . '_leaflet_views_alter_points_data';
+            $function($result, $points);
+          }
+
           // Attach pop-ups if we have a description field
           if (isset($description)) {
             array_walk($points, create_function('&$p,$i,$t', '$p[\'popup\'] = $t;'), $description);
