Commit b67cce5a authored by Dries's avatar Dries

- Patch #46422 by Neil: module installation hook.

parent a723204e
......@@ -1016,6 +1016,7 @@ function system_modules_submit($form_id, $edit) {
$versions = drupal_get_schema_versions($module);
if (drupal_get_installed_schema_version($module) == SCHEMA_UNINSTALLED) {
drupal_set_installed_schema_version($module, $versions ? max($versions) : SCHEMA_INSTALLED);
module_invoke($module, 'install');
}
}
......
......@@ -1016,6 +1016,7 @@ function system_modules_submit($form_id, $edit) {
$versions = drupal_get_schema_versions($module);
if (drupal_get_installed_schema_version($module) == SCHEMA_UNINSTALLED) {
drupal_set_installed_schema_version($module, $versions ? max($versions) : SCHEMA_INSTALLED);
module_invoke($module, 'install');
}
}
......
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