You are here

function oa_adminrole_modules_installed in Open Atrium Core 7.2

Implements hook_modules_installed().

File

modules/oa_adminrole/oa_adminrole.module, line 131
This module simply gives the administrator role all node-based permissions every time the a new content-type is saved. Also supports the og_permissions

Code

function oa_adminrole_modules_installed($modules) {
  foreach ($modules as $module) {
    if ($info_array = module_invoke($module, 'node_info')) {
      foreach ($info_array as $type => $info) {
        oa_adminrole_update_permissions($type);
        oa_adminrole_update_og_permissions($type);
      }
    }
  }
}