You are here

function hosting_feature in Hosting 5

Same name and namespace in other branches
  1. 6.2 hosting.features.inc \hosting_feature()
  2. 7.4 hosting.features.inc \hosting_feature()
  3. 7.3 hosting.features.inc \hosting_feature()
8 calls to hosting_feature()
hosting_client_access in client/hosting_client.module
hosting_client_menu in client/hosting_client.module
Implementation of hook_menu()
hosting_features_form in ./hosting.features.inc
hosting_features_form_submit in ./hosting.features.inc
hosting_menu in ./hosting.module
Implementation of hook_menu()

... See full list

File

./hosting.features.inc, line 11
Hosting features

Code

function hosting_feature($feature) {
  static $features = array();
  if (!sizeof($features)) {
    $features = hosting_get_features();
  }
  if ($features[$feature]['module']) {
    $return = module_exists($features[$feature]['module']) ? HOSTING_FEATURE_ENABLED : HOSTING_FEATURE_DISABLED;
  }
  else {
    $return = variable_get('hosting_feature_' . $feature, $features[$feature]['status']);
  }
  return $return;
}