summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-03-11 08:17:56 +0000
committerDries Buytaert <dries@buytaert.net>2008-03-11 08:17:56 +0000
commit6aa7c385e32ebd4e3bf2bc9d30fd17a6fc7c8c41 (patch)
tree2b2103f7889625dd42577d1d0864b214e8c5045c /modules
parenta170d1f8f22f10201a4b474c367a8170122f911e (diff)
downloadbrdo-6aa7c385e32ebd4e3bf2bc9d30fd17a6fc7c8c41.tar.gz
brdo-6aa7c385e32ebd4e3bf2bc9d30fd17a6fc7c8c41.tar.bz2
- Patch #226480 by gpk: improved code comment.
Diffstat (limited to 'modules')
-rw-r--r--modules/node/node.admin.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/node/node.admin.inc b/modules/node/node.admin.inc
index b0be96c83..0b1252d74 100644
--- a/modules/node/node.admin.inc
+++ b/modules/node/node.admin.inc
@@ -10,8 +10,9 @@
* Menu callback; presents general node configuration options.
*/
function node_configure() {
- // Only show rebuild button if there is 0 or more than 2 rows in node_access table,
- // or if there are modules that implement node_grant.
+ // Only show rebuild button if there are either 0, or 2 or more, rows
+ // in the {node_access} table, or if there are modules that
+ // implement hook_node_grants().
if (db_result(db_query('SELECT COUNT(*) FROM {node_access}')) != 1 || count(module_implements('node_grants')) > 0) {
$status = '<p>'. t('If the site is experiencing problems with permissions to content, you may have to rebuild the permissions cache. Possible causes for permission problems are disabling modules or configuration changes to permissions. Rebuilding will remove all privileges to posts, and replace them with permissions based on the current modules and settings.') .'</p>';
$status .= '<p>'. t('Rebuilding may take some time if there is a lot of content or complex permission settings. After rebuilding has completed posts will automatically use the new permissions.') .'</p>';