function private_action_info in Private 7.2
Same name and namespace in other branches
- 6 private.module \private_action_info()
- 7 private.module \private_action_info()
Implements hook_action_info().
File
- ./
private.module, line 339 - 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',
'label' => t('Make private'),
'configurable' => FALSE,
'triggers' => array(
'node_insert',
'node_update',
),
),
'private_set_public_action' => array(
'type' => 'node',
'label' => t('Make public'),
'configurable' => FALSE,
'triggers' => array(
'node_insert',
'node_update',
),
),
);
}