From 73ea4467f8f999e5387d3849fa942147d50b937f Mon Sep 17 00:00:00 2001 From: Barracuda Team <admin@omega8.cc> Date: Sun, 7 Sep 2014 00:47:13 +0200 Subject: [PATCH] Backport provision_hosting_feature_enabled() --- provision.drush.inc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/provision.drush.inc b/provision.drush.inc index c124364f7..3b71ef4c8 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]; +} + -- GitLab