diff --git a/core/modules/taxonomy/taxonomy.views.inc b/core/modules/taxonomy/taxonomy.views.inc index 0e17245..2fcc3e7 100644 --- a/core/modules/taxonomy/taxonomy.views.inc +++ b/core/modules/taxonomy/taxonomy.views.inc @@ -14,7 +14,8 @@ function taxonomy_views_data() { $data = array(); - // taxonomy_term_data table. + // taxonomy_term_data table + $data['taxonomy_term_data']['table']['group'] = t('Taxonomy term'); $data['taxonomy_term_data']['table']['base'] = array( 'field' => 'tid', @@ -25,6 +26,8 @@ function taxonomy_views_data() { $data['taxonomy_term_data']['table']['entity type'] = 'taxonomy_term'; $data['taxonomy_term_data']['table']['wizard_id'] = 'taxonomy_term'; + + // The term data table $data['taxonomy_term_data']['table']['join'] = array( // This is provided for many_to_one argument 'taxonomy_index' => array( @@ -33,7 +36,6 @@ function taxonomy_views_data() { ), ); - // taxonomy_term_field_data table. $data['taxonomy_term_field_data']['table']['group'] = t('Content'); $data['taxonomy_term_field_data']['table']['entity type'] = 'taxonomy_term'; $data['taxonomy_term_field_data']['table']['join']['taxonomy_term_data'] = array( @@ -42,7 +44,7 @@ function taxonomy_views_data() { 'field' => 'tid', ); - // tid field. + // tid field $data['taxonomy_term_data']['tid'] = array( 'title' => t('Term ID'), 'help' => t('The tid of a taxonomy term.'), @@ -66,7 +68,7 @@ function taxonomy_views_data() { ), ); - // Raw tid field. + // raw tid field $data['taxonomy_term_data']['tid_raw'] = array( 'title' => t('Term ID'), 'help' => t('The tid of a taxonomy term.'), @@ -93,7 +95,7 @@ function taxonomy_views_data() { ), ); - // Term name field. + // Term name field $data['taxonomy_term_field_data']['name'] = array( 'title' => t('Name'), 'help' => t('The taxonomy term name.'), @@ -133,7 +135,7 @@ function taxonomy_views_data() { ), ); - // Term description. + // Term description $data['taxonomy_term_field_data']['description__value'] = array( 'title' => t('Term description'), 'help' => t('The description associated with a taxonomy term.'), @@ -147,7 +149,7 @@ function taxonomy_views_data() { ), ); - // Term vocabulary. + // Term vocabulary $data['taxonomy_term_field_data']['vid'] = array( 'title' => t('Vocabulary'), 'help' => t('Filter the results of "Taxonomy: Term" to a particular vocabulary.'), @@ -173,7 +175,7 @@ function taxonomy_views_data() { ), ); - // Link to edit the term. + // Link to edit the term $data['taxonomy_term_data']['edit_term'] = array( 'field' => array( 'title' => t('Term edit link'), @@ -262,7 +264,8 @@ function taxonomy_views_data() { ); } - // taxonomy_index table. + // taxonomy_index table + $data['taxonomy_index']['table']['group'] = t('Taxonomy term'); $data['taxonomy_index']['table']['join'] = array( @@ -319,7 +322,8 @@ function taxonomy_views_data() { ), ); - // term_hierarchy table. + // term_hierarchy table + $data['taxonomy_term_hierarchy']['table']['group'] = t('Taxonomy term'); $data['taxonomy_term_hierarchy']['table']['join'] = array(