### Eclipse Workspace Patch 1.0
#P features
Index: features.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/features/features.module,v
retrieving revision 1.1.2.80
diff -u -r1.1.2.80 features.module
--- features.module	27 Sep 2010 15:43:56 -0000	1.1.2.80
+++ features.module	17 Feb 2011 09:51:57 -0000
@@ -703,6 +703,9 @@
     }
   }
 
+  // Fetch list of features that were already installed once.
+  $installed = variable_get('features_installed_modules', array());
+
   foreach ($items as $module_name => $components) {
     foreach ($components as $component) {
       if (features_hook($component, $restore_hook)) {
@@ -717,7 +720,19 @@
         watchdog('features', '@action completed for @module_name / @component.', array('@action' => $log_action, '@component' => $component, '@module_name' => $module_name));
       }
     }
+
+    // If this is the first time the module has been installed, call its hook_features_post_install() implementation.
+    if (!isset($installed[$module_name])) {
+      $function = $module_name .'_features_post_install';
+      if (function_exists($function)) {
+        call_user_func($function);
+      }
+      $installed[$module_name] = true;
+    }
   }
+
+  // Save new installed features list.
+  variable_set('features_installed_modules', $installed);
 }
 
 /**
