function private_node_operations in Private 7
Same name and namespace in other branches
- 6 private.module \private_node_operations()
- 7.2 private.module \private_node_operations()
Implements hook_node_operations().
File
- ./
private.module, line 345 - 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;
}