You are here

function hosting_modules_enabled in Hosting 7.4

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

Implements hook_modules_enabled().

File

./hosting.module, line 1482
Hosting module.

Code

function hosting_modules_enabled($modules) {

  // List any features whose module was just enabled.
  $features = hosting_get_features();
  $enable = array();
  foreach ($features as $feature => $info) {
    if (in_array($info['module'], $modules) && !variable_get('hosting_feature_' . $feature, FALSE)) {
      $enable[$info['module']] = $feature;
    }
  }
  hosting_features_enable($enable, TRUE, FALSE);
}