Commit 76d77f94 authored by Pol's avatar Pol Committed by tim.plunkett
Browse files

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

parent 934bcb42
...@@ -86,6 +86,24 @@ function taxonomy_views_data() { ...@@ -86,6 +86,24 @@ function taxonomy_views_data() {
'handler' => 'views_handler_field', '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 // taxonomy_term_data table
...@@ -211,6 +229,9 @@ function taxonomy_views_data() { ...@@ -211,6 +229,9 @@ function taxonomy_views_data() {
'filter' => array( 'filter' => array(
'handler' => 'views_handler_filter_numeric', 'handler' => 'views_handler_filter_numeric',
), ),
'argument' => array(
'handler' => 'views_handler_argument_numeric',
),
); );
// Term description // Term description
......
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