From f6b166ff23faa3ab8a2f643394842710dbecfd3d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 26 Feb 2010 18:31:29 +0000 Subject: - Patch #620298 by David_Rothstein: schema not available in hook_install(). --- modules/node/node.module | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'modules/node/node.module') 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 @@ -3535,6 +3535,17 @@ function node_requirements($phase) { return $requirements; } +/** + * 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. * -- cgit v1.2.3