You are here

function nat_views_data_alter in Node Auto Term [NAT] 7

Same name and namespace in other branches
  1. 6.2 includes/nat.views.inc \nat_views_data_alter()
  2. 6 includes/nat.views.inc \nat_views_data_alter()
  3. 7.2 includes/nat.views.inc \nat_views_data_alter()

Implements hook_views_data_alter().

File

includes/nat.views.inc, line 134
NAT (Node Auto Term) Views implementation.

Code

function nat_views_data_alter(&$data) {
  $data['node']['nat_term_node_tid_depth'] = array(
    'group' => t('NAT'),
    'title' => t('Nid (with depth)'),
    'help' => t('The node ID of the NAT with depth.'),
    'real field' => 'vid',
    'argument' => array(
      'handler' => 'nat_handler_argument_term_node_tid_depth',
      'accept depth modifier' => TRUE,
    ),
  );
  $data['node']['nat_term_node_tid_depth_modifier'] = array(
    'group' => t('NAT'),
    'title' => t('Nid depth modifier'),
    'help' => t('Allows the "depth" for NAT: Nid (with depth) to be modified via an additional argument.'),
    'argument' => array(
      'handler' => 'nat_handler_argument_term_node_tid_depth_modifier',
    ),
  );
}