From d72539f1b5667948b4ccd2021d0c56bb67530600 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 30 Oct 2009 21:41:45 +0000 Subject: - Patch #200931 by Darren Oh, asimmonds: fixed schema not being available in hook_install()/hook_enable(). --- includes/module.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'includes') diff --git a/includes/module.inc b/includes/module.inc index 4213469ff..0de05ae49 100644 --- a/includes/module.inc +++ b/includes/module.inc @@ -221,6 +221,8 @@ function module_enable($module_list, $disable_modules_installed_hook = FALSE) { module_implements('', FALSE, TRUE); // Force to regenerate the stored list of hook implementations. registry_rebuild(); + // Refresh the schema to include the new enabled module. + drupal_get_schema(NULL, TRUE); // If any modules were newly installed, execute the hook for them. if (!$disable_modules_installed_hook && !empty($modules_installed)) { -- cgit v1.2.3