You are here

function internal_nodes_rules_event_info in Internal Nodes 7

Implements hook_rules_event_info().

File

./internal_nodes.rules.inc, line 22
Internal nodes Rules Integration

Code

function internal_nodes_rules_event_info() {
  $defaults = array(
    'group' => t('Internal nodes'),
    'module' => 'internal_nodes',
    'access callback' => 'internal_nodes_integration_access',
  );
  return array(
    'internal_nodes_denied' => $defaults + array(
      'label' => t('Node view denied to user'),
      'variables' => array(
        'node' => array(
          'type' => 'node',
          'label' => t('denied content'),
        ),
      ),
    ),
  );
}