From 11a81a4c8bff1f25c1468dc49f15bda891e440ff Mon Sep 17 00:00:00 2001 From: webchick Date: Sat, 28 Feb 2015 14:33:29 -0800 Subject: [PATCH] Issue #2409623 by hexabinaer, pjonckiere, tstoeckler: Amend misleading Views UI labels/descriptions --- core/modules/views/src/Plugin/views/display/Block.php | 2 +- core/modules/views/src/Plugin/views/query/Sql.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/views/src/Plugin/views/display/Block.php b/core/modules/views/src/Plugin/views/display/Block.php index d2bfe26dec4e..391046c7bc9d 100644 --- a/core/modules/views/src/Plugin/views/display/Block.php +++ b/core/modules/views/src/Plugin/views/display/Block.php @@ -173,7 +173,7 @@ class Block extends DisplayPluginBase { $options['block_hide_empty'] = array( 'category' => 'other', 'title' => $this->t('Hide block if the view output is empty'), - 'value' => $this->getOption('block_hide_empty') ? $this->t('Hide') : $this->t('Show'), + 'value' => $this->getOption('block_hide_empty') ? $this->t('Yes') : $this->t('No'), ); } diff --git a/core/modules/views/src/Plugin/views/query/Sql.php b/core/modules/views/src/Plugin/views/query/Sql.php index bf52fb9fc86d..0bc5134461ae 100644 --- a/core/modules/views/src/Plugin/views/query/Sql.php +++ b/core/modules/views/src/Plugin/views/query/Sql.php @@ -203,7 +203,7 @@ class Sql extends QueryPluginBase { $form['disable_sql_rewrite'] = array( '#title' => $this->t('Disable SQL rewriting'), - '#description' => $this->t('Disabling SQL rewriting will disable node_access checks as well as other modules that implement hook_query_alter().'), + '#description' => $this->t('Disabling SQL rewriting will omit all query tags, i. e. disable node access checks as well as override hook_query_alter() implementations in other modules.'), '#type' => 'checkbox', '#default_value' => !empty($this->options['disable_sql_rewrite']), '#suffix' => '
' . $this->t('WARNING: Disabling SQL rewriting means that node access security is disabled. This may allow users to see data they should not be able to see if your view is misconfigured. Use this option only if you understand and accept this security risk.') . '
',