summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-10-30 21:41:45 +0000
committerDries Buytaert <dries@buytaert.net>2009-10-30 21:41:45 +0000
commitd72539f1b5667948b4ccd2021d0c56bb67530600 (patch)
tree0adf62f3dffd5c4be4b0d79a86c7c3640044b57d
parentfc81470ff38e17dec8043f1615a7690885e383e0 (diff)
downloadbrdo-d72539f1b5667948b4ccd2021d0c56bb67530600.tar.gz
brdo-d72539f1b5667948b4ccd2021d0c56bb67530600.tar.bz2
- Patch #200931 by Darren Oh, asimmonds: fixed schema not being available in hook_install()/hook_enable().
-rw-r--r--includes/module.inc2
1 files changed, 2 insertions, 0 deletions
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)) {