You are here

function flexiaccess_permission in Flexi Access 7

Implements hook_permission().

File

./flexiaccess.module, line 45
Main hooks for per user access control.

Code

function flexiaccess_permission() {
  return array(
    'administer flexiaccess' => array(
      'title' => t('Administer Flexi access'),
      'description' => t('Access the Flexi access administrative interface.  <em>Give to trusted roles only.</em>'),
    ),
    'access flexiaccess' => array(
      'title' => t('Administer all nodes'),
      'description' => t('Administer access to all nodes mangaged by Flexi access. <em>Give to trusted roles only.</em>'),
    ),
    'access flexiaccess own' => array(
      'title' => t('Administer own nodes'),
      'description' => t('Administer access to own nodes mangaged by Flexi access.'),
    ),
    'flexiaccess create acl' => array(
      'title' => t('Create ACLs'),
      'description' => t('Create an ACL for a node.'),
    ),
    'flexiaccess view' => array(
      'title' => t('Grant view permission'),
      'description' => t('Grant or withdraw view permission for a managed node.'),
    ),
    'flexiaccess update' => array(
      'title' => t('Grant update permission'),
      'description' => t('Grant or withdraw edit/update permission for a managed node.'),
    ),
    'flexiaccess delete' => array(
      'title' => t('Grant delete permission'),
      'description' => t('Grant or withdraw delete permission for a managed node.'),
    ),
  );
}