You are here

function ggroup_group_member_operations in Group 7

Implements hook_group_member_operations().

Callbacks are situated in ggroup.module.

File

modules/ggroup/ggroup.group.inc, line 52
Hook implementations for the Group module.

Code

function ggroup_group_member_operations(Group $group) {
  $operations['ggroup-revert'] = array(
    'label' => t('Revert to default Inherited state'),
    'callback' => 'ggroup_inheritance_revert',
    'optgroup' => t('Inherited memberships'),
  );
  $operations['ggroup-decline'] = array(
    'label' => t('Break free from inheritance'),
    'callback' => 'ggroup_inheritance_break',
    'optgroup' => t('Inherited memberships'),
  );
  return $operations;
}