diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-08 11:27:16 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2008-01-08 11:27:16 +0000 |
commit | ab036224bb3093578085544d43c9a3d3128ebb08 (patch) | |
tree | 050f25f11227223fb8c1f284fb052839ea92b887 /modules/node/node.module | |
parent | b78a990270fe41d582ae22b7f42df292428ec74b (diff) | |
download | brdo-ab036224bb3093578085544d43c9a3d3128ebb08.tar.gz brdo-ab036224bb3093578085544d43c9a3d3128ebb08.tar.bz2 |
#205792 by yched: fix contradictory messages after node access rebuild
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 3f9a4062d..9f6714db1 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -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.'); |