Skip to content
Snippets Groups Projects
Commit 76d77f94 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by Tim Plunkett
Browse files

Issue #1056170 by Pol, anrikun, tim.plunkett: Added Sorting: order by vocabulary weight.

parent 934bcb42
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -86,6 +86,24 @@ function taxonomy_views_data() {
'handler' => 'views_handler_field',
),
);
$data['taxonomy_vocabulary']['weight'] = array(
'title' => t('Weight'),
'help' => t('The taxonomy vocabulary weight'),
'field' => array(
'handler' => 'views_handler_field_numeric',
'click sortable' => TRUE,
),
'argument' => array(
'handler' => 'views_handler_argument_numeric',
'name field' => 'weight',
),
'sort' => array(
'handler' => 'views_handler_sort',
),
'filter' => array(
'handler' => 'views_handler_filter_numeric',
),
);
// ----------------------------------------------------------------------
// taxonomy_term_data table
......@@ -211,6 +229,9 @@ function taxonomy_views_data() {
'filter' => array(
'handler' => 'views_handler_filter_numeric',
),
'argument' => array(
'handler' => 'views_handler_argument_numeric',
),
);
// Term description
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment