diff --git a/features.module b/features.module index 4acf2c0..f14c6fd 100644 --- a/features.module +++ b/features.module @@ -845,6 +845,11 @@ function features_form_system_modules_alter(&$form) { * Restore the specified modules to the default state. */ function _features_restore($op, $items = array()) { + // Set this variable in $conf if having timeout issues during install/rebuild. + if (variable_get('features_restore_time_limit_' . $op, FALSE) !== FALSE) { + drupal_set_time_limit(variable_get('features_restore_time_limit_' . $op, FALSE)); + } + module_load_include('inc', 'features', 'features.export'); features_include();