diff --git a/core/modules/node/node.views.inc b/core/modules/node/node.views.inc index bcfcf73..e1bf016 100644 --- a/core/modules/node/node.views.inc +++ b/core/modules/node/node.views.inc @@ -15,11 +15,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. + // Define the base group of this table. Fields that don't have a group defined + // will go into this field by default. $data['node']['table']['group'] = t('Content'); - // Advertise this table as a possible base table + // Advertise this table as a possible base table. $data['node']['table']['base'] = array( 'field' => 'nid', 'title' => t('Content'), @@ -57,7 +57,9 @@ function node_views_data() { 'title' => t('Title'), 'help' => t('The content title.'), 'field' => array( + // This is the real field which could be left out since it is the same. 'field' => 'title', + // This is the UI group which could be left out since it is the same. 'group' => t('Content'), 'id' => 'node', 'link_to_node default' => TRUE, @@ -131,7 +133,8 @@ function node_views_data() { 'id' => 'boolean', 'label' => t('Published status'), 'type' => 'yes-no', - 'use_equal' => TRUE, // Use status = 1 instead of status <> 0 in WHERE statment + // Use status = 1 instead of status <> 0 in WHERE statement. + 'use_equal' => TRUE, ), 'sort' => array( 'id' => 'standard', @@ -410,7 +413,7 @@ function node_views_data() { ), ); - // For other base tables, explain how we join + // For other base tables, explain how we join. $data['node_revision']['table']['join'] = array( 'node' => array( 'left_field' => 'vid', diff --git a/core/modules/user/user.views.inc b/core/modules/user/user.views.inc index dec7b32..8010606 100644 --- a/core/modules/user/user.views.inc +++ b/core/modules/user/user.views.inc @@ -361,7 +361,7 @@ function user_views_data() { /** * Implements hook_views_query_substitutions(). * - * Allow replacement of current userid so we can cache these queries + * Allow replacement of current userid so we can cache these queries. */ function user_views_query_substitutions($view) { global $user;