Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
7f5caaac
Commit
7f5caaac
authored
Oct 1, 2010
by
Angie Byron
Browse files
Options
Downloads
Patches
Plain Diff
#915216
by catch, Damien Tournoud: Fixing update.php cannot apply updates error.
parent
bf751d9a
No related branches found
No related tags found
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
includes/module.inc
+12
-1
12 additions, 1 deletion
includes/module.inc
with
12 additions
and
1 deletion
includes/module.inc
+
12
−
1
View file @
7f5caaac
...
@@ -404,8 +404,19 @@ function module_enable($module_list, $enable_dependencies = TRUE) {
...
@@ -404,8 +404,19 @@ function module_enable($module_list, $enable_dependencies = TRUE) {
// Now install the module if necessary.
// Now install the module if necessary.
if
(
drupal_get_installed_schema_version
(
$module
,
TRUE
)
==
SCHEMA_UNINSTALLED
)
{
if
(
drupal_get_installed_schema_version
(
$module
,
TRUE
)
==
SCHEMA_UNINSTALLED
)
{
drupal_install_schema
(
$module
);
drupal_install_schema
(
$module
);
// Set the schema version to the number of the last update provided
// by the module.
$versions
=
drupal_get_schema_versions
(
$module
);
$versions
=
drupal_get_schema_versions
(
$module
);
drupal_set_installed_schema_version
(
$module
,
$versions
?
max
(
$versions
)
:
SCHEMA_INSTALLED
);
$version
=
$versions
?
max
(
$versions
)
:
SCHEMA_INSTALLED
;
// If the module has no current updates, but has some that were
// previously removed, set the version to the value of
// hook_update_last_removed().
if
(
$last_removed
=
module_invoke
(
$module
,
'update_last_removed'
))
{
$version
=
max
(
$version
,
$last_removed
);
}
drupal_set_installed_schema_version
(
$module
,
$version
);
// Allow the module to perform install tasks.
// Allow the module to perform install tasks.
module_invoke
(
$module
,
'install'
);
module_invoke
(
$module
,
'install'
);
// Record the fact that it was installed.
// Record the fact that it was installed.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment