summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-02-26 18:31:29 +0000
committerDries Buytaert <dries@buytaert.net>2010-02-26 18:31:29 +0000
commitf6b166ff23faa3ab8a2f643394842710dbecfd3d (patch)
tree871c742fb8e120901ec941b9062109df36d9c593 /modules/node/node.module
parentbc70eaeb8ddd78022ea6831ccb2e49b9cb653069 (diff)
downloadbrdo-f6b166ff23faa3ab8a2f643394842710dbecfd3d.tar.gz
brdo-f6b166ff23faa3ab8a2f643394842710dbecfd3d.tar.bz2
- Patch #620298 by David_Rothstein: schema not available in hook_install().
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 9e6b76045..36cc76dcd 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -3536,6 +3536,17 @@ function node_requirements($phase) {
}
/**
+ * Implements hook_modules_enabled().
+ */
+function node_modules_enabled($modules) {
+ // Check if any of the newly enabled modules require the node_access table to
+ // be rebuilt.
+ if (!node_access_needs_rebuild() && array_intersect($modules, module_implements('node_grants'))) {
+ node_access_needs_rebuild(TRUE);
+ }
+}
+
+/**
* Controller class for nodes.
*
* This extends the DrupalDefaultEntityController class, adding required