Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
4758c8cd
Commit
4758c8cd
authored
Dec 09, 2005
by
Dries
Browse files
- Patch
#40518
by drumm: upgrade system fixes.
parent
c17ff754
Changes
2
Hide whitespace changes
Inline
Side-by-side
includes/install.inc
View file @
4758c8cd
...
...
@@ -29,8 +29,11 @@
function
drupal_get_schema_versions
(
$module
)
{
$functions
=
get_defined_functions
();
foreach
(
$functions
[
'user'
]
as
$function
)
{
if
(
strpos
(
$function
,
$module
.
'_update'
)
===
0
)
{
$updates
[]
=
(
int
)
substr
(
$function
,
strlen
(
$module
.
'_update_'
));
if
(
strpos
(
$function
,
$module
.
'_update_'
)
===
0
)
{
$version
=
substr
(
$function
,
strlen
(
$module
.
'_update_'
));
if
(
is_numeric
(
$version
))
{
$updates
[]
=
$version
;
}
}
}
if
(
count
(
$updates
)
==
0
)
{
...
...
update.php
View file @
4758c8cd
...
...
@@ -292,8 +292,9 @@ function update_selection_page() {
'#collapsed'
=>
TRUE
,
);
foreach
(
module_list
()
as
$module
)
{
if
(
module_hook
(
$module
,
'version'
))
{
$updates
=
drupal_map_assoc
(
drupal_get_schema_versions
(
$module
));
$updates
=
drupal_get_schema_versions
(
$module
);
if
(
$updates
!==
FALSE
)
{
$updates
=
drupal_map_assoc
(
$updates
);
$updates
[]
=
'No updates available'
;
$form
[
'start'
][
$module
]
=
array
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment