summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-12-26 00:29:49 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-12-26 00:29:49 +0000
commitca11696598dfeb350df9fe90861b8fffa45c002e (patch)
treeb7ace4ca40c25123bcccb427dd3e254cc4529f26 /modules/node/node.module
parent8b9a3326c3d478fd267147641d45e91c79a15ad5 (diff)
downloadbrdo-ca11696598dfeb350df9fe90861b8fffa45c002e.tar.gz
brdo-ca11696598dfeb350df9fe90861b8fffa45c002e.tar.bz2
#105210 by myself. Check the correct hook for grant rebuild UI.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index bbff1ba35..2fca4bfe4 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -968,7 +968,7 @@ function theme_node_search_admin($form) {
*/
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.
- if (db_result(db_query('SELECT COUNT(*) FROM {node_access}')) != 1 || count(module_implements('node_grant'))) {
+ 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>';