# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: calendar/calendar_ical/calendar_plugin_style_ical.inc
--- calendar/calendar_ical/calendar_plugin_style_ical.inc Base (1.1.2.17)
+++ calendar/calendar_ical/calendar_plugin_style_ical.inc Locally Modified (Based On 1.1.2.17)
@@ -238,17 +238,13 @@
     // Massage the resulting items into formatted calendar items.
     $items = calendar_build_nodes($this->view, $items);
     
-    // Merge in items from other sources.
+    // Work on the calendar items.
     foreach (module_implements('calendar_add_items') as $module) {
       $function = $module .'_calendar_add_items';
       if (function_exists($function)) {
-        if ($feeds = $function($this->view)) {
-          foreach ($feeds as $feed) {
-            $items = $feed;
+        $function($this->view, $items);
           }
         }
-      }
-    }
     return theme($this->theme_functions(), $this->view, $this->options, $items);
   }
 }
Index: calendar/theme/theme.inc
--- calendar/theme/theme.inc Base (1.10.2.72)
+++ calendar/theme/theme.inc Locally Modified (Based On 1.10.2.72)
@@ -128,17 +128,13 @@
   // Massage the resulting items into formatted calendar items.
   $items = calendar_build_nodes($view, $items);
   
-  // Merge in items from other sources.
+  // Work on the calendar items.
   foreach (module_implements('calendar_add_items') as $module) {
     $function = $module .'_calendar_add_items';
     if (function_exists($function)) {
-      if ($feeds = $function($view)) {
-        foreach ($feeds as $feed) {
-          $items = $feed;
+      $function($view, $items);
         }
       }
-    }
-  }
 
   $view->date_info->mini = isset($view->date_info->mini) ? $view->date_info->mini : $view->date_info->granularity == 'year';
   
