From b5af822a6d120aee29c997557c1082337b44c842 Mon Sep 17 00:00:00 2001
From: Pieter Frenssen <pieter@frenssen.be>
Date: Mon, 13 May 2013 08:54:01 +0200
Subject: [PATCH] Issue #1947816 by pfrenssen: Add support for the Menu Block
 module.

---
 fe_block.module | 23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

diff --git a/fe_block.module b/fe_block.module
index b335040..4b3af43 100644
--- a/fe_block.module
+++ b/fe_block.module
@@ -77,8 +77,27 @@ function fe_block_settings_features_export($data, &$export, $module_name = '') {
       $machine_name = substr($object_name, strlen('block-'));
       $pipe['fe_block_boxes'][$machine_name] = $machine_name;
     }
-    // @todo Export menu blocks.
-    // Others.
+    // Add support for the Menu Block module.
+    elseif (strpos($object_name, 'menu_block-') === 0) {
+      // Add dependencies.
+      $export['dependencies']['strongarm'] = 'strongarm';
+      $export['dependencies']['menu_block'] = 'menu_block';
+      // Export the menu block settings.
+      $pipe['variable'][] = 'menu_block_ids';
+      $variables = array(
+        'admin_title',
+        'depth',
+        'expanded',
+        'follow',
+        'level',
+        'parent',
+        'sort',
+        'title_link',
+      );
+      foreach ($variables as $variable_name) {
+        $pipe['variable'][] = str_replace('-', '_', $object_name) . "_{$variable_name}";
+      }
+    }
     else {
       $pipe['block'][$object_name] = $object_name;
     }
-- 
1.8.2.2

