You are here

function simple_access_action_info in Simple Access 5.2

Same name and namespace in other branches
  1. 8.3 simple_access.module \simple_access_action_info()
  2. 6.2 simple_access.module \simple_access_action_info()
  3. 7.2 simple_access.module \simple_access_action_info()

Implementation of hook_action_info()

File

inc/workflow_ng.inc, line 11
Add workflow ng functionality to simple access

Code

function simple_access_action_info() {
  return array(
    'simple_access_action_owner_grant' => array(
      '#label' => t('Grant permissions to content owner'),
      '#arguements' => array(
        'node' => array(
          '#entity' => 'node',
          '#label' => t('Content'),
        ),
      ),
      '#module' => t('Node'),
    ),
    'simple_access_action_owner_revoke' => array(
      '#label' => t('Revoke permissions from content owner'),
      '#arguements' => array(
        'node' => array(
          '#entity' => 'node',
          '#label' => t('Content'),
        ),
      ),
      '#module' => t('Node'),
    ),
    'simple_access_action_group_grant' => array(
      '#label' => t('Grant permissions to groups'),
      '#arguements' => array(
        'node' => array(
          '#entity' => 'node',
          '#label' => t('Content'),
        ),
      ),
      '#module' => t('Node'),
    ),
    'simple_access_action_group_revoke' => array(
      '#label' => t('Revoke permissions from groups'),
      '#arguements' => array(
        'node' => array(
          '#entity' => 'node',
          '#label' => t('Content'),
        ),
      ),
      '#module' => t('Node'),
    ),
    'simple_access_action_profile_enable' => array(
      '#label' => t('Enable access profile'),
      '#arguements' => array(
        'node' => array(
          '#entity' => 'node',
          '#label' => t('Content'),
        ),
      ),
      '#module' => t('Node'),
    ),
    'simple_access_action_profile_disable' => array(
      '#label' => t('Disable access profile'),
      '#arguements' => array(
        'node' => array(
          '#entity' => 'node',
          '#label' => t('Content'),
        ),
      ),
      '#module' => t('Node'),
    ),
  );
}