From 35891bab23d823ea1792277f2c767675a96bb6dc Mon Sep 17 00:00:00 2001
From: "Richard A. Allen" <richard_allen@timeinc.com>
Date: Tue, 26 Jun 2012 15:57:33 -0400
Subject: [PATCH] Issue #1484530 by AlexanderAllen: Don't export comment
 variables unless comment.module is enabled.

---
 strongarm.module |   25 +++++++++++++++----------
 1 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/strongarm.module b/strongarm.module
index 8b69697..1d7a7c7 100644
--- a/strongarm.module
+++ b/strongarm.module
@@ -193,16 +193,21 @@ function variable_features_export_render($module, $data) {
  */
 function strongarm_features_pipe_node_alter(&$pipe, $data, $export) {
   if (!empty($data)) {
-    $variables = array(
-      'comment',
-      'comment_anonymous',
-      'comment_controls',
-      'comment_default_mode',
-      'comment_default_order',
-      'comment_default_per_page',
-      'comment_form_location',
-      'comment_preview',
-      'comment_subject_field',
+    $variables = array();
+    if (module_exists('comment')) {
+      $variables += array(
+        'comment',
+        'comment_anonymous',
+        'comment_controls',
+        'comment_default_mode',
+        'comment_default_order',
+        'comment_default_per_page',
+        'comment_form_location',
+        'comment_preview',
+        'comment_subject_field',
+      );
+    }
+    $variables += array(
       'field_bundle_settings_node_',
       'language_content_type',
       'menu_options',
-- 
1.7.5.4

