summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-05-03 19:38:53 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-05-03 19:38:53 +0000
commit4d629641acef80cee51a04fcb6a8aa5504f30511 (patch)
tree1efe81760f3197b4987ab3b5ff9fadaefb77df75
parent53fdfb31848dbe98393889d560781913f3584732 (diff)
downloadbrdo-4d629641acef80cee51a04fcb6a8aa5504f30511.tar.gz
brdo-4d629641acef80cee51a04fcb6a8aa5504f30511.tar.bz2
#444744 by mikejoconnor: Include .module file automatically during hook_install().
-rw-r--r--includes/install.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/install.inc b/includes/install.inc
index 7cd4c7038..6f043bf4c 100644
--- a/includes/install.inc
+++ b/includes/install.inc
@@ -535,6 +535,7 @@ function drupal_install_modules($module_list = array(), $disable_modules_install
function _drupal_install_module($module) {
if (drupal_get_installed_schema_version($module, TRUE) == SCHEMA_UNINSTALLED) {
module_load_install($module);
+ drupal_load('module', $module);
module_invoke($module, 'install');
$versions = drupal_get_schema_versions($module);
drupal_set_installed_schema_version($module, $versions ? max($versions) : SCHEMA_INSTALLED);