diff --git a/provision.drush.inc b/provision.drush.inc index c124364f78b567bc5f4df2d2db9ef62abc96a886..3b71ef4c8d0dd4f043dc73f2f9e83cc435ad9e9b 100644 --- a/provision.drush.inc +++ b/provision.drush.inc @@ -439,3 +439,12 @@ function provision_load_critical($load = NULL, $threshold = NULL) { } return ($load[0] > $threshold); } + +/** + * Check whether a Hosting feature is enabled. + */ +function provision_hosting_feature_enabled($feature) { + $features = drush_get_option('hosting_features', array()); + return array_key_exists($feature, $features) && $features[$feature]; +} +