You are here

function og_modules_enabled in Organic groups 7

Implements hook_modules_enabled().

File

./og.module, line 357
Enable users to create and manage groups with roles and permissions.

Code

function og_modules_enabled($modules) {

  // Reset this cache first, since Drush can call this function multiple times
  // before all modules are available.
  drupal_static_reset('og_get_permissions');
  foreach ($modules as $module) {

    // Add default roles and permissions, if existing and not set yet.
    og_set_global_access_module($module);
  }
}