From 68ebdcdc385d0ffee3a240c8158bc2e236d7be0b Mon Sep 17 00:00:00 2001
From: fago <nuppla@zites.net>
Date: Wed, 2 Mar 2011 14:10:45 +0100
Subject: [PATCH] install silently

---
 search_api.install |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/search_api.install b/search_api.install
index 1f0d4e0..e2a306e 100644
--- a/search_api.install
+++ b/search_api.install
@@ -165,6 +165,13 @@ function search_api_schema() {
  * Creates a default node index.
  */
 function search_api_install() {
+  // Create a default node index, but only if installed manually. In case the
+  // module is installed via an installation profile, a batch is active and
+  // we skip that.
+  if (batch_get()) {
+    return;
+  }
+
   $name = t('Default node index');
   $values = array(
     'name' => $name,
-- 
1.7.1

