You are here

function commons_groups_og_permission_alter in Drupal Commons 7.3

Implements hook_og_permission_alter().

File

modules/commons/commons_groups/commons_groups.module, line 12

Code

function commons_groups_og_permission_alter(&$perms) {

  // Rename the 'subscribe' and 'subscribe without approval' permissions to
  // better reflect their purpose in Commons.
  $perms['subscribe']['title'] = t('Contribute to the group');
  $perms['subscribe']['description'] = t('This value is set automatically based on the "Group Privacy Settings" field.');
  $perms['subscribe without approval']['title'] = t('Contribute to the group without approval');
  $perms['subscribe without approval']['description'] = t('This value is set automatically based on the "Group Privacy Settings" field.');
}