You are here

function abt_permission in Access By Term 7

Implements hook_perm().

File

./abt.module, line 321
abt.module Module for controling access by using user->term<-node relationship.

Code

function abt_permission() {
  return array(
    'assign view access control' => array(
      'title' => t('Assign fields to control node <strong>view</strong> access'),
      'restrict access' => TRUE,
    ),
    'assign update access control' => array(
      'title' => t('Assign fields to control node <strong>update</strong> access'),
      'restrict access' => TRUE,
    ),
    'assign delete access control' => array(
      'title' => t('Assign fields to control node <strong>delete</strong> access'),
      'restrict access' => TRUE,
    ),
    'allow edit abt field content in profile' => array(
      'title' => t('Allow users to <strong>edit</strong> ABT terms on profile page.'),
      'restrict access' => TRUE,
    ),
    'allow view abt field content in profile' => array(
      'title' => t('Allow users to <strong>view</strong> ABT terms on profile page.'),
      'restrict access' => TRUE,
    ),
    'allow edit abt field content in node' => array(
      'title' => t('Allow users to <strong>edit</strong> ABT terms on node page.'),
      'restrict access' => TRUE,
    ),
    'allow view abt field content in node' => array(
      'title' => t('Allow users to <strong>view</strong> ABT terms on node page.'),
      'restrict access' => TRUE,
    ),
    'view unpublished abt controlled nodes' => array(
      'title' => t('Allow users to <strong>view</strong> unpublished nodes, controlled with ABT.'),
      'restrict access' => TRUE,
    ),
    'view own abt controlled nodes' => array(
      'title' => t('Allow users to <strong>view</strong> their own nodes, controlled with ABT.'),
      'restrict access' => TRUE,
    ),
  );
}