diff --git a/modules/taxonomy.views.inc b/modules/taxonomy.views.inc index 723a8f8a62efa73f4ef12688efc56abcd6108786..7b0dfeee75ea6889df689618790d461c149c3c64 100644 --- a/modules/taxonomy.views.inc +++ b/modules/taxonomy.views.inc @@ -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