You are here

function simple_access_action_info in Simple Access 8.3

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

Implements hook_action_info().

File

./simple_access.module, line 487
Builds simple access definition for content access.

Code

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