function provision_hosting_feature_enabled

7.x-3.x provision.drush.inc provision_hosting_feature_enabled($feature)

Check whether a Hosting feature is enabled.

Related topics

7 calls to provision_hosting_feature_enabled()
Provision_Config_Drupal_Settings::process in Provision/Config/Drupal/Settings.php
Process and add to $data before writing the configuration.
Provision_Service_http_apache::init_server in http/Provision/Service/http/apache.php
Provision_Service_http_nginx::init_server in http/Provision/Service/http/nginx.php
Provision_Service_http_nginx::save_server in http/Provision/Service/http/nginx.php
Provision_Service_http_nginx::verify_server_cmd in http/Provision/Service/http/nginx.php

... See full list

File

./provision.drush.inc, line 469
Provision Drush commands.

Code

function provision_hosting_feature_enabled($feature) {
  $features = drush_get_option('hosting_features', array());
  return array_key_exists($feature, $features) && $features[$feature];
}