### Eclipse Workspace Patch 1.0
#P hn-drupal
Index: sites/all/modules/contrib/features_extra/fe_block.module
===================================================================
RCS file: /opt/cvs/repo1/hn-drupal/sites/all/modules/contrib/features_extra/fe_block.module,v
retrieving revision 1.2
diff -u -r1.2 fe_block.module
--- sites/all/modules/contrib/features_extra/fe_block.module	11 Aug 2010 01:21:15 -0000	1.2
+++ sites/all/modules/contrib/features_extra/fe_block.module	12 Aug 2010 18:05:39 -0000
@@ -2,6 +2,21 @@
 // $Id: fe_block.module,v 1.2 2010/08/11 01:21:15 C954988 Exp $
 
 /**
+ * Implementation of hook_menu().
+ */
+function fe_block_menu() {
+  $items['admin/settings/fe_block']=array(
+    'page callback'=>"drupal_get_form",
+    'page arguments'=>array('fe_block_settings'),
+    'access arguments'=>array('create features'),
+    'type'=>MENU_NORMAL_ITEM,
+    'title'=>t('Features Extra - Blocks'),
+    'file'=>'fe_block.admin.inc',
+  );
+  return $items;
+}
+
+/**
  * Implementation of hook_features_api().
  */
 function fe_block_features_api() {
@@ -95,8 +110,14 @@
   $code[] = '  $export = array();';
   $code[] = '';
 
+  $tracked_themes=array_flip(variable_get('fe_block_tracked_themes',array()));
+  //dpm($themes);
+  //dpm($tracked_themes);
   foreach ($themes as $_theme_key => $theme) {
-    if ($_theme_key == $theme_default || !empty($theme->status)) {
+    
+    if (($_theme_key == $theme_default || !empty($theme->status)) 
+    && (array_key_exists($_theme_key, $tracked_themes) || !count($tracked_themes)) 
+    ) {
       $code[] = '  // '. $_theme_key;
       $code[] = '  $theme = array();';
       $code[] = '';
Index: sites/all/modules/contrib/features_extra/fe_block.admin.inc
===================================================================
RCS file: sites/all/modules/contrib/features_extra/fe_block.admin.inc
diff -N sites/all/modules/contrib/features_extra/fe_block.admin.inc
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ sites/all/modules/contrib/features_extra/fe_block.admin.inc	1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,20 @@
+<?php
+
+
+function fe_block_settings(){
+  $themes=list_themes();
+  
+  foreach($themes as $theme=>$data){
+    $theme_options[$theme]=$theme;
+  }
+  
+  $form=array();
+  $form['fe_block_tracked_themes']=array(
+    '#type'=>"checkboxes",
+    '#title'=>t("Tracked themes"),
+    '#description'=>t("Select which themes will have settings exported for selected blocks in exported features"),
+    '#default_value'=>variable_get('fe_block_tracked_themes',array()),
+    '#options'=>$theme_options,
+  );
+  return system_settings_form($form);
+}
