You are here

function og_subgroups_prop_og in Subgroups for Organic groups 6

Implementation of hook_og()

File

modules/og_subgroups_prop/og_subgroups_prop.module, line 58

Code

function og_subgroups_prop_og($op, $gid, $uid, $args = array()) {

  // Don't propgate in the middle of propagation action.
  if (!$args['og_subgroups']) {
    switch ($op) {
      case 'user insert':
        og_subgroups_prop_propagate_user('subscribe', $gid, $uid, $args);
        break;
      case 'user delete':
        og_subgroups_prop_propagate_user('unsubscribe', $gid, $uid, $args);
        break;
    }
  }
}