You are here

function ginvite_group_permission in Group 7

Implements hook_group_permission().

File

modules/ginvite/ginvite.group.inc, line 10
Hook implementations for the Group module.

Code

function ginvite_group_permission() {
  $permissions = array(
    'invite members by user' => array(
      'title' => t('Invite members by user'),
      'description' => t('Invite members by their username on the website'),
      'warning' => t('You only get the autocomplete if you have the sitewide "View user profiles" permission.'),
    ),
    'invite members by mail' => array(
      'title' => t('Invite members by mail'),
      'description' => t('Invite members by their e-mail address'),
      'warning' => t('Registered e-mail addresses will get a user invite instead.'),
    ),
    'manage mail invitations' => array(
      'title' => t('Manage e-mail invitations'),
      'description' => t('View, edit or delete unused e-mail invitations'),
    ),
  );
  return $permissions;
}