From a0e8d36f5eab4bdee2df898124a2d7b316920942 Mon Sep 17 00:00:00 2001
From: Chris Leppanen <chris.leppanen@gmail.com>
Date: Wed, 26 Sep 2012 03:08:56 -0700
Subject: [PATCH] Dang it. Add feeds_alter() back because contrib depends on
 it.

---
 feeds.module | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/feeds.module b/feeds.module
index 7f483b40..4529273a 100644
--- a/feeds.module
+++ b/feeds.module
@@ -1044,6 +1044,32 @@ function feeds_include_simplepie() {
   return FALSE;
 }
 
+/**
+ * @deprecated
+ *
+ * Simplified drupal_alter().
+ *
+ * - None of that 'multiple parameters by ref' crazyness.
+ * - Don't use module_implements() to allow hot including on behalf
+ *   implementations (see mappers/).
+ *
+ * @todo This needs to be removed and drupal_alter() used. This is crazy dumb.
+ */
+function feeds_alter($type, &$data) {
+  $args = array(&$data);
+  $additional_args = func_get_args();
+  array_shift($additional_args);
+  array_shift($additional_args);
+  $args = array_merge($args, $additional_args);
+
+  $hook = $type . '_alter';
+  foreach (module_list() as $module) {
+    if (module_hook($module, $hook)) {
+      call_user_func_array($module . '_' . $hook, $args);
+    }
+  }
+}
+
 /**
  * @}
  */
-- 
GitLab