function ack_node_access_handler_info in Access Control Kit 7
Implements hook_access_handler_info().
File
- ack_node/
ack_node.module, line 20 - The ACK node module.
Code
function ack_node_access_handler_info() {
// Handlers for node properties.
$info['ACKNodeAuthor'] = array(
'label' => t('Author'),
'scheme types' => array(
'user',
),
'object types' => array(
'node',
),
);
$info['ACKNodeSticky'] = array(
'label' => t('Sticky'),
'scheme types' => array(
'boolean',
),
'object types' => array(
'node',
),
);
// Handler for the taxonomy index.
if (module_exists('taxonomy')) {
$info['ACKNodeTaxonomyIndex'] = array(
'label' => t('Term association'),
'scheme types' => array(
'taxonomy_term',
),
'object types' => array(
'node',
),
);
}
return $info;
}