You are here

function private_node_operations in Private 6

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

Implementation of hook_node_operations().

File

./private.module, line 283
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_node_operations() {
  $operations = array(
    'private_mark_as_private' => array(
      'label' => t('Mark as private'),
      'callback' => 'private_node_mark_private',
    ),
    'private_mark_as_public' => array(
      'label' => t('Mark as public'),
      'callback' => 'private_node_mark_public',
    ),
  );
  return $operations;
}