You are here

function views_summary_taxonomy_views_data_alter in Views Hacks 7

Same name and namespace in other branches
  1. 6 views_summary_taxonomy/views_summary_taxonomy.views.inc \views_summary_taxonomy_views_data_alter()

Implementation of hook_views_data_alter().

File

views_summary_taxonomy/views_summary_taxonomy.views.inc, line 24

Code

function views_summary_taxonomy_views_data_alter(&$data) {
  $data['term_node']['term_node_tid_depth_summary'] = array(
    'group' => t('Taxonomy'),
    'title' => t('Term ID (with depth and summary)'),
    'help' => t('Taxonomy term argument that supports depth and summary view.'),
    'real field' => 'tid',
    'argument' => array(
      'handler' => 'views_handler_argument_term_node_tid_depth_summary',
      'accept depth modifier' => TRUE,
    ),
  );
}