You are here

function hosting_modules_disabled in Hosting 7.4

Same name and namespace in other branches
  1. 7.3 hosting.module \hosting_modules_disabled()

Implements hook_modules_disabled().

File

./hosting.module, line 1498
Hosting module.

Code

function hosting_modules_disabled($modules) {

  // List any features whose module was just disabled.
  $features = hosting_get_features();
  $disable = array();
  foreach ($features as $feature => $info) {
    if (in_array($info['module'], $modules) && variable_get('hosting_feature_' . $feature, TRUE)) {
      $disable[$info['module']] = $feature;
    }
  }
  hosting_features_disable($disable, $rebuild = TRUE, $disable_module = FALSE);
}