From eafd88be2954bb3be13979fa89424e293ec451cf Mon Sep 17 00:00:00 2001
From: Marco Antonio Villegas Vega <marvil07@gmail.com>
Date: Mon, 26 Oct 2009 01:20:32 -0500
Subject: [PATCH 2/2] xapian on default search block

let default search block use xapian if xapian_takeover is active, by
adding search_block_form id to form_alter
---
 xapian.module |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/xapian.module b/xapian.module
index 0ec5bf3..6f8b5ce 100644
--- a/xapian.module
+++ b/xapian.module
@@ -78,7 +78,7 @@ function xapian_index_status() {
  */
 function xapian_form_alter(&$form, &$form_state, $form_id) {
   if (variable_get('xapian_takeover', FALSE)) {
-    if ($form_id == 'search_theme_form') {
+    if ($form_id == 'search_theme_form' || $form_id == 'search_block_form') {
       $form['#submit'][] = 'xapian_search_submit';
     }
   }
-- 
1.6.3.3

