You are here

function commons_events_enable in Drupal Commons 7.3

Set default events roles upon enable

File

modules/commons/commons_events/commons_events.install, line 6

Code

function commons_events_enable() {
  $revert = array(
    'commons_events' => array(
      'og_features_permission',
    ),
  );
  features_revert($revert);
  $groups = og_get_all_group();
  foreach ($groups as $gid) {
    commons_groups_features_permission_rebuild('commons_events', $gid);
  }
}