You are here

function simple_access_action_info in Simple Access 7.2

Same name and namespace in other branches
  1. 8.3 simple_access.module \simple_access_action_info()
  2. 5.2 inc/workflow_ng.inc \simple_access_action_info()
  3. 6.2 simple_access.module \simple_access_action_info()

Implements hook_action_info().

File

./simple_access.module, line 817
This module allows administrators to make nodes viewable by specific 'access groups'. Each access group can contain any number of roles. If a node is not assigned to any access groups, it will remain viewable by all users.

Code

function simple_access_action_info() {
  return array(
    'simple_access_owner_grant' => array(
      'type' => 'node',
      'label' => t('Grant permissions to content owner'),
      'description' => t('Grant permissions to content owner'),
      'configurable' => TRUE,
      'triggers' => array(
        'node_insert',
        'node_update',
      ),
      'behavior' => array(
        'changes_property',
      ),
    ),
    'simple_access_owner_revoke' => array(
      'type' => 'node',
      'label' => t('Revoke permissions from content owner'),
      'description' => t('Revoke permissions from content owner'),
      'configurable' => TRUE,
      'triggers' => array(
        'node_insert',
        'node_update',
      ),
      'behavior' => array(
        'changes_property',
      ),
    ),
    'simple_access_group_grant' => array(
      'type' => 'node',
      'label' => t('Grant permissions to groups'),
      'description' => t('Grant permissions to groups'),
      'configurable' => TRUE,
      'triggers' => array(
        'node_insert',
        'node_update',
      ),
      'behavior' => array(
        'changes_property',
      ),
    ),
    'simple_access_group_revoke' => array(
      'type' => 'node',
      'label' => t('Revoke permissions from groups'),
      'description' => t('Revoke permissions from groups'),
      'configurable' => TRUE,
      'triggers' => array(
        'node_insert',
        'node_update',
      ),
      'behavior' => array(
        'changes_property',
      ),
    ),
    'simple_access_profile_enable' => array(
      'type' => 'node',
      'label' => t('Enable access profile'),
      'description' => t('Enable access profile'),
      'configurable' => TRUE,
      'triggers' => array(
        'node_insert',
        'node_update',
      ),
      'behavior' => array(
        'changes_property',
      ),
    ),
    'simple_access_profile_disable' => array(
      'type' => 'node',
      'label' => t('Disable access profile'),
      'description' => t('Disable access profile'),
      'configurable' => TRUE,
      'triggers' => array(
        'node_insert',
        'node_update',
      ),
      'behavior' => array(
        'changes_property',
      ),
    ),
  );
}