From 67b871b6085ce3582e545448a22c88755a91ea4a Mon Sep 17 00:00:00 2001
From: David Gil <david.gil@biko2.com>
Date: Wed, 6 Jun 2012 12:53:46 +0200
Subject: [PATCH] =?UTF-8?q?An=CC=83adido=20hook=20de=20alter=20de=20views=20?=
 =?UTF-8?q?al=20modulo=20apache=5Fsolr=5Fviews?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../apachesolr_views/apachesolr_views_query.inc    |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/docroot/sites/all/modules/contrib/apachesolr_views/apachesolr_views_query.inc b/docroot/sites/all/modules/contrib/apachesolr_views/apachesolr_views_query.inc
index 7d9ed76..e39e2c9 100644
--- a/docroot/sites/all/modules/contrib/apachesolr_views/apachesolr_views_query.inc
+++ b/docroot/sites/all/modules/contrib/apachesolr_views/apachesolr_views_query.inc
@@ -48,6 +48,16 @@ class apachesolr_views_query extends views_plugin_query {
   }
 
   /**
+   * Let modules modify the query just prior to finalizing it.
+   */
+  function alter(&$view) {
+    foreach (module_implements('views_query_alter') as $module) {
+      $function = $module . '_views_query_alter';
+      $function($view, $this);
+    }
+  }
+
+  /**
    * Executes the query and fills the associated view object with according
    * values.
    *
-- 
1.7.8.3

