Commit 4d629641 authored by webchick's avatar webchick
Browse files

#444744 by mikejoconnor: Include .module file automatically during hook_install().

parent 53fdfb31
......@@ -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) {
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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment