Skip to content
Snippets Groups Projects
Commit ab036224 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#205792 by yched: fix contradictory messages after node access rebuild

parent b78a9902
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -20,7 +20,10 @@ ...@@ -20,7 +20,10 @@
* Implementation of hook_help(). * Implementation of hook_help().
*/ */
function node_help($path, $arg) { function node_help($path, $arg) {
if ($path != 'admin/content/node-settings/rebuild' && strpos($path, '#') === FALSE // Remind site administrators about the {node_access} table being flagged
// for rebuild. We don't need to issue the message on the confirm form, or
// while the rebuild is being processed.
if ($path != 'admin/content/node-settings/rebuild' && $path != 'batch' && strpos($path, '#') === FALSE
&& user_access('access administration pages') && node_access_needs_rebuild()) { && user_access('access administration pages') && node_access_needs_rebuild()) {
if ($path == 'admin/content/node-settings') { if ($path == 'admin/content/node-settings') {
$message = t('The content access permissions need to be rebuilt.'); $message = t('The content access permissions need to be rebuilt.');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment