Commit 1fa90e38 authored by dawehner's avatar dawehner Committed by tim.plunkett
Browse files

Issue #1605326 by dawehner: Add comment.language integration.

parent 7928024c
......@@ -168,6 +168,28 @@ function comment_views_data() {
),
);
// Language field
if (module_exists('locale')) {
$data['comment']['language'] = array(
'title' => t('Language'),
'help' => t('The language the comment is in.'),
'field' => array(
'handler' => 'views_handler_field_locale_language',
'click sortable' => TRUE,
),
'filter' => array(
'handler' => 'views_handler_filter_locale_language',
),
'argument' => array(
'handler' => 'views_handler_argument_locale_language',
),
'sort' => array(
'handler' => 'views_handler_sort',
),
);
}
$data['comments']['timestamp']['moved to'] = array('comment', 'changed');
// changed (when comment was last updated)
$data['comment']['changed'] = array(
......
......@@ -202,7 +202,6 @@ function locale_views_data() {
function locale_views_data_alter(&$data) {
// Language field
$data['node']['language'] = array(
'group' => t('Content'),
'title' => t('Language'),
'help' => t('The language the content is in.'),
'field' => array(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment