Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (29 sloc) 0.879 kB
<?php
/**
* Implementation of hook_views_data().
*/
function i18ntaxonomy_views_views_data_alter(&$data) {
// tid field
$data['term_node']['tid']['field']['handler'] = 'views_handler_field_term_node_tid_i18n';
$data['term_node']['tid']['filter']['handler'] = 'views_handler_filter_term_node_tid_i18n';
return $data;
}
/**
* Implementation of hook_views_handlers() to register all of the basic handlers
* views uses.
*/
function i18ntaxonomy_views_views_handlers() {
return array(
'info' => array(
'path' => drupal_get_path('module', 'i18ntaxonomy_views'),
),
'handlers' => array(
'views_handler_field_term_node_tid_i18n' => array(
'parent' => 'views_handler_field_term_node_tid',
),
'views_handler_filter_term_node_tid_i18n' => array(
'parent' => 'views_handler_filter_term_node_tid',
),
),
);
}
Jump to Line
Something went wrong with that request. Please try again.