From 38ce7c2e8b27a7b26c509c104450a83b0b1ce279 Mon Sep 17 00:00:00 2001
From: Pieter Frenssen <pieter@frenssen.be>
Date: Tue, 9 Apr 2013 17:40:30 +0200
Subject: [PATCH] Issue #1965588 by pfrenssen: Fixed Variables not set when
 enabling feature.

---
 strongarm.module | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/strongarm.module b/strongarm.module
index c8b1e2a..e4f228b 100644
--- a/strongarm.module
+++ b/strongarm.module
@@ -141,6 +141,15 @@ function variable_features_rebuild($module) {
 }
 
 /**
+ * Implements hook_features_enable_feature().
+ */
+function variable_features_enable_feature($module) {
+  // Use the safe variable_features_rebuild() so that existing variables will
+  // not get accidentally overwritten when a feature is enabled.
+  variable_features_rebuild($module);
+}
+
+/**
  * Implements hook_features_export().
  *
  * This is implemented to remove variables that are in code, but not DB.
-- 
1.8.2.1

