You are here

function private_action_info in Private 6

Same name and namespace in other branches
  1. 7.2 private.module \private_action_info()
  2. 7 private.module \private_action_info()

Implementation of hook_action_info().

File

./private.module, line 239
A tremendously simple access control module -- it allows users to mark individual nodes as private; users with 'access private content' perms can read these nodes, while others cannot.

Code

function private_action_info() {
  return array(
    'private_set_private_action' => array(
      'type' => 'node',
      'description' => t('Make post private'),
      'configurable' => FALSE,
      'hooks' => array(
        'nodeapi' => array(
          'insert',
          'update',
        ),
      ),
    ),
    'private_set_public_action' => array(
      'type' => 'node',
      'description' => t('Make post public'),
      'configurable' => FALSE,
      'hooks' => array(
        'nodeapi' => array(
          'insert',
          'update',
        ),
      ),
    ),
  );
}