Commit 73ea4467 authored by omega8cc's avatar omega8cc

Backport provision_hosting_feature_enabled()

parent 584c2e90
...@@ -439,3 +439,12 @@ function provision_load_critical($load = NULL, $threshold = NULL) { ...@@ -439,3 +439,12 @@ function provision_load_critical($load = NULL, $threshold = NULL) {
} }
return ($load[0] > $threshold); 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];
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment