diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-02-15 22:16:58 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-02-15 22:16:58 +0000 |
commit | fa54a703da4d15d8a740bef4c1bb4ba49f4c14f6 (patch) | |
tree | 2eb3fccafaa991ff2ef9505aca367852f94c9326 /includes | |
parent | efb4ec06a5aa0bcb22237ef10d6bc6e2f1cc2ff3 (diff) | |
download | brdo-fa54a703da4d15d8a740bef4c1bb4ba49f4c14f6.tar.gz brdo-fa54a703da4d15d8a740bef4c1bb4ba49f4c14f6.tar.bz2 |
#399642 follow-up by JacobSingh: include /includes/install.inc in module_enable() which is required when enabling modules for the first time.
Diffstat (limited to 'includes')
-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 aa031b3ca..313f71253 100644 --- a/includes/module.inc +++ b/includes/module.inc @@ -338,6 +338,8 @@ function module_enable($module_list, $enable_dependencies = TRUE, $disable_modul $invoke_modules = array(); + // Required for _drupal_install_module(). + include_once DRUPAL_ROOT . '/includes/install.inc'; // Try to install the enabled modules and collect which were installed. // $module_list is not changed and already installed modules are ignored. $modules_installed = array_filter($module_list, '_drupal_install_module'); |