1.20.x locale.views.inc | locale_views_data_alter(&$data) |
Implements hook_views_data_alter().
File
- modules/
locale/ views/ locale.views.inc, line 202 - Provides views data and handlers for locale.module.
Code
function locale_views_data_alter(&$data) {
// Node language field.
$data['node']['langcode'] = array(
'title' => t('Language'),
'help' => t('The language the content is in.'),
'field' => array(
'handler' => 'views_handler_field_node_language',
'click sortable' => TRUE,
),
'filter' => array(
'handler' => 'views_handler_filter_node_language',
),
'argument' => array(
'handler' => 'views_handler_argument_node_language',
),
'sort' => array(
'handler' => 'views_handler_sort',
),
);
// Term language field.
$data['taxonomy_term_data']['langcode'] = array(
'title' => t('Language'),
'help' => t('The language the term is in.'),
'field' => array(
'handler' => 'views_handler_field_term_language',
'click sortable' => TRUE,
),
'filter' => array(
'handler' => 'views_handler_filter_term_language',
),
'argument' => array(
'handler' => 'views_handler_argument_term_language',
),
'sort' => array(
'handler' => 'views_handler_sort',
),
);
}