diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-10-30 21:41:45 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-10-30 21:41:45 +0000 |
commit | d72539f1b5667948b4ccd2021d0c56bb67530600 (patch) | |
tree | 0adf62f3dffd5c4be4b0d79a86c7c3640044b57d | |
parent | fc81470ff38e17dec8043f1615a7690885e383e0 (diff) | |
download | brdo-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.inc | 2 |
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)) { |