Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
76d77f94
Commit
76d77f94
authored
Jul 16, 2012
by
Pol
Committed by
tim.plunkett
Oct 21, 2012
Browse files
Issue
#1056170
by Pol, anrikun, tim.plunkett: Added Sorting: order by vocabulary weight.
parent
934bcb42
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/taxonomy.views.inc
View file @
76d77f94
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment