diff --git a/core/modules/comment/comment.views.inc b/core/modules/comment/comment.views.inc index 5e31876..fa42393 100644 --- a/core/modules/comment/comment.views.inc +++ b/core/modules/comment/comment.views.inc @@ -13,7 +13,7 @@ function comment_views_data_alter(&$data) { // history table. $data['node']['new_comments'] = array( 'title' => t('New comments'), - 'help' => t('The number of new comments on the node.'), + 'help' => t('Number of new comments.'), 'field' => array( 'id' => 'node_new_comments', 'no group by' => TRUE, @@ -33,7 +33,7 @@ function comment_views_data_alter(&$data) { $data[$base_table]['comments_link'] = array( 'field' => array( 'title' => t('Add comment link'), - 'help' => t('Display the standard add comment link used on regular @entity_type, which will only display if the viewing user has access to add a comment.', $args), + 'help' => t('Display comment link if user has permission.', $args), 'id' => 'comment_entity_link', ), ); diff --git a/core/modules/comment/src/CommentViewsData.php b/core/modules/comment/src/CommentViewsData.php index e853a58..e7e5463 100644 --- a/core/modules/comment/src/CommentViewsData.php +++ b/core/modules/comment/src/CommentViewsData.php @@ -237,7 +237,7 @@ public function getViewsData() { $data['comment_entity_statistics']['last_comment_timestamp'] = array( 'title' => t('Last comment time'), - 'help' => t('Date and time of when the last comment was posted.'), + 'help' => t('Datetime posted.'), 'field' => array( 'id' => 'comment_last_timestamp', ), @@ -251,7 +251,7 @@ public function getViewsData() { $data['comment_entity_statistics']['last_comment_name'] = array( 'title' => t("Last comment author"), - 'help' => t('The name of the author of the last posted comment.'), + 'help' => t("Author's name."), 'field' => array( 'id' => 'comment_ces_last_comment_name', 'no group by' => TRUE, @@ -264,7 +264,7 @@ public function getViewsData() { $data['comment_entity_statistics']['comment_count'] = array( 'title' => t('Comment count'), - 'help' => t('The number of comments an entity has.'), + 'help' => t('Number of comments.'), 'field' => array( 'id' => 'numeric', ), @@ -281,7 +281,7 @@ public function getViewsData() { $data['comment_entity_statistics']['last_updated'] = array( 'title' => t('Updated/commented date'), - 'help' => t('The most recent of last comment posted or entity updated time.'), + 'help' => t('Most recent comment or entity update.'), 'field' => array( 'id' => 'comment_ces_last_updated', 'no group by' => TRUE, @@ -311,7 +311,7 @@ public function getViewsData() { $data['comment_entity_statistics']['last_comment_uid'] = array( 'title' => t('Last comment uid'), - 'help' => t('The User ID of the author of the last comment of an entity.'), + 'help' => t('User ID.'), 'relationship' => array( 'title' => t('Last comment author'), 'base' => 'users', diff --git a/core/modules/node/src/NodeViewsData.php b/core/modules/node/src/NodeViewsData.php index aecaec2..6adb6ca 100644 --- a/core/modules/node/src/NodeViewsData.php +++ b/core/modules/node/src/NodeViewsData.php @@ -105,7 +105,7 @@ public function getViewsData() { $data['node']['node_bulk_form'] = array( 'title' => t('Node operations bulk form'), - 'help' => t('Add a form element that lets you run operations on multiple nodes.'), + 'help' => t('Run operations on multiple nodes.'), 'field' => array( 'id' => 'node_bulk_form', ), @@ -223,7 +223,7 @@ public function getViewsData() { ), ); - $data['node_field_data']['uid']['help'] = t('The user authoring the content. If you need more fields than the uid add the content: author relationship'); + $data['node_field_data']['uid']['help'] = t('Uid, for more, add relationship: content: author'); $data['node_field_data']['uid']['filter']['id'] = 'user_name'; $data['node_field_data']['uid']['relationship']['title'] = t('Content author'); $data['node_field_data']['uid']['relationship']['help'] = t('Relate content to the user who created it.'); @@ -277,21 +277,17 @@ public function getViewsData() { ) + $data['node_revision']['vid']; $data['node_field_revision']['langcode']['help'] = t('The language the original content is in.'); - - $data['node_revision']['revision_uid']['help'] = t('Relate a content revision to the user who created the revision.'); - $data['node_revision']['revision_uid']['relationship']['label'] = t('revision user'); - $data['node_field_revision']['table']['wizard_id'] = 'node_field_revision'; - $data['node_field_revision']['table']['join']['node_field_data']['left_field'] = 'vid'; $data['node_field_revision']['table']['join']['node_field_data']['field'] = 'vid'; - $data['node_field_revision']['status']['filter']['label'] = t('Published'); $data['node_field_revision']['status']['filter']['type'] = 'yes-no'; $data['node_field_revision']['status']['filter']['use_equal'] = TRUE; - + $data['node_field_revision']['title']['field']['id'] = 'node_revision'; $data['node_field_revision']['langcode']['help'] = t('The language of the content or translation.'); + $data['node_revision']['revision_uid']['help'] = t('User who created the revision.'); + $data['node_revision']['revision_uid']['relationship']['label'] = t('revision user'); $data['node_revision']['link_to_revision'] = array( 'field' => array( 'title' => t('Link to revision'), @@ -386,7 +382,7 @@ public function getViewsData() { $data['node_search_index']['score'] = array( 'title' => t('Score'), - 'help' => t('The score of the search item. This will not be used if the search filter is not also present.'), + 'help' => t('The score of the search item if the search filter is present.'), 'field' => array( 'id' => 'search_score', 'float' => TRUE, diff --git a/core/modules/taxonomy/taxonomy.views.inc b/core/modules/taxonomy/taxonomy.views.inc index 5360d50..875a5b2 100644 --- a/core/modules/taxonomy/taxonomy.views.inc +++ b/core/modules/taxonomy/taxonomy.views.inc @@ -21,7 +21,7 @@ function taxonomy_views_data_alter(&$data) { ), 'field' => array( 'title' => t('All taxonomy terms'), - 'help' => t('Display all taxonomy terms associated with a node from specified vocabularies.'), + 'help' => t('Terms from a specified vocabulary.'), 'id' => 'taxonomy_index_tid', 'no group by' => TRUE, 'click sortable' => FALSE, diff --git a/core/modules/user/src/UserViewsData.php b/core/modules/user/src/UserViewsData.php index edbdb99..779de03 100644 --- a/core/modules/user/src/UserViewsData.php +++ b/core/modules/user/src/UserViewsData.php @@ -84,7 +84,7 @@ public function getViewsData() { $data['users_field_data']['name']['filter']['help'] = t('The user or author name. This filter does not check if the user exists and allows partial matching. Does not use autocomplete.'); // Note that this field implements field level access control. - $data['users_field_data']['mail']['help'] = t('Email address for a given user. This field is normally not shown to users, so be cautious when using it.'); + $data['users_field_data']['mail']['help'] = t('Caution! Security Implications. Not normally used.'); $data['users_field_data']['langcode']['help'] = t('Original language of the user information'); $data['users_field_data']['langcode']['help'] = t('Language of the translation of user information'); @@ -255,7 +255,7 @@ public function getViewsData() { $data['users']['user_bulk_form'] = array( 'title' => t('Bulk update'), - 'help' => t('Add a form element that lets you run operations on multiple users.'), + 'help' => t('Run operations on multiple users.'), 'field' => array( 'id' => 'user_bulk_form', ), diff --git a/core/modules/views/src/ViewsDataHelper.php b/core/modules/views/src/ViewsDataHelper.php index c248d7d..b0f6050 100644 --- a/core/modules/views/src/ViewsDataHelper.php +++ b/core/modules/views/src/ViewsDataHelper.php @@ -115,7 +115,7 @@ public function fetchFields($base, $type, $grouping = FALSE, $sub_type = NULL) { $strings[$field][$key][$string] = $table_data['table'][$string]; } else { - if ($string != 'base' && $string != 'base') { + if ($string != 'base' && $string != 'help') { $strings[$field][$key][$string] = SafeMarkup::format("Error: missing @component", array('@component' => $string)); } } diff --git a/core/modules/views_ui/src/Form/Ajax/AddHandler.php b/core/modules/views_ui/src/Form/Ajax/AddHandler.php index da54d50..f350a14 100644 --- a/core/modules/views_ui/src/Form/Ajax/AddHandler.php +++ b/core/modules/views_ui/src/Form/Ajax/AddHandler.php @@ -140,7 +140,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { $form['options']['name'][$key] = array( '#type' => 'checkbox', '#title' => $this->t('!group: !field', array('!group' => $option['group'], '!field' => $option['title'])), - '#description' => $option['help'], + '#description' => (!empty($option['help']) ? $option['help'] : ''), '#return_value' => $key, '#prefix' => "
", '#suffix' => '
',