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

6.x
Gábor Hojtsy 2008-01-08 11:27:16 +00:00
parent b78a990270
commit ab036224bb
1 changed files with 4 additions and 1 deletions

View File

@ -20,7 +20,10 @@ define('NODE_BUILD_PRINT', 5);
* Implementation of hook_help().
*/
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()) {
if ($path == 'admin/content/node-settings') {
$message = t('The content access permissions need to be rebuilt.');