diff --git a/core/modules/comment/comment.views.inc b/core/modules/comment/comment.views.inc index 806603d..e74c97c 100644 --- a/core/modules/comment/comment.views.inc +++ b/core/modules/comment/comment.views.inc @@ -12,6 +12,8 @@ */ function comment_views_data() { + // Define the base group of this table. Fields that don't have a group defined + // will go into this field by default. $data['comment']['table']['group'] = t('Comment'); $data['comment']['table']['base'] = array( @@ -368,8 +370,11 @@ function comment_views_data() { ); } + // Define the base group of this table. Fields that don't have a group defined + // will go into this field by default. $data['node_comment_statistics']['table']['group'] = t('Content'); + // Explain how this table joins to others. $data['node_comment_statistics']['table']['join'] = array( 'node' => array( 'type' => 'INNER', diff --git a/core/modules/node/node.views.inc b/core/modules/node/node.views.inc index e1bf016..7794c98 100644 --- a/core/modules/node/node.views.inc +++ b/core/modules/node/node.views.inc @@ -223,6 +223,8 @@ function node_views_data() { // table so they can be re-used with other query backends. // @see views_handler_field_entity + // Define the base group of this table. Fields that don't have a group defined + // will go into this field by default. $data['views_entity_node']['table']['group'] = t('Content'); $data['views_entity_node']['view_node'] = array( @@ -258,6 +260,7 @@ function node_views_data() { ); // Bogus fields for aliasing purposes. + $data['node']['created_fulldate'] = array( 'title' => t('Created date'), 'help' => t('Date in the form of CCYYMMDD.'), @@ -401,9 +404,13 @@ function node_views_data() { ); $data['node_revision']['table']['entity type'] = 'node'; + // Define the base group of this table. Fields that don't have a group defined + // will go into this field by default. $data['node_revision']['table']['group'] = t('Content revision'); $data['node_revision']['table']['wizard_id'] = 'node_revision'; + + // Advertise this table as a possible base table. $data['node_revision']['table']['base'] = array( 'field' => 'vid', 'title' => t('Content revision'), @@ -495,6 +502,7 @@ function node_views_data() { 'id' => 'boolean', 'label' => t('Published'), 'type' => 'yes-no', + // Use status = 1 instead of status <> 0 in WHERE statement. 'use_equal' => TRUE, ), 'sort' => array( @@ -572,8 +580,11 @@ function node_views_data() { ), ); + // Define the base group of this table. Fields that don't have a group defined + // will go into this field by default. $data['node_access']['table']['group'] = t('Content access'); + // For other base tables, explain how we join. $data['node_access']['table']['join'] = array( 'node' => array( 'left_field' => 'nid', diff --git a/core/modules/user/user.views.inc b/core/modules/user/user.views.inc index 8010606..f70427d 100644 --- a/core/modules/user/user.views.inc +++ b/core/modules/user/user.views.inc @@ -11,6 +11,9 @@ * Implements hook_views_data(). */ function user_views_data() { + + // Define the base group of this table. Fields that don't have a group defined + // will go into this field by default. $data['users']['table']['group'] = t('User'); $data['users']['table']['base'] = array( @@ -304,8 +307,11 @@ function user_views_data() { ), ); + // Define the base group of this table. Fields that don't have a group defined + // will go into this field by default. $data['users_roles']['table']['group'] = t('User'); + // Explain how this table joins to others. $data['users_roles']['table']['join'] = array( 'users' => array( 'left_field' => 'uid', @@ -334,7 +340,10 @@ function user_views_data() { ), ); + // Define the base group of this table. Fields that don't have a group defined + // will go into this field by default. $data['role_permission']['table']['group'] = t('User'); + // Explain how this table joins to others. $data['role_permission']['table']['join'] = array( 'users' => array( 'left_table' => 'users_roles',