diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-12-09 15:46:47 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-12-09 15:46:47 +0000 |
commit | 1d0fa04d3383bacc9133a33e2acd3ea665407917 (patch) | |
tree | 541ba9ba71cde52f4b338462cfe8b8e99002b68d /includes/install.inc | |
parent | adcbc9b957e2d8c49b236e4ca1c890ca312a3836 (diff) | |
download | brdo-1d0fa04d3383bacc9133a33e2acd3ea665407917.tar.gz brdo-1d0fa04d3383bacc9133a33e2acd3ea665407917.tar.bz2 |
- Patch #40518 by drumm: remove hook_versions.
Diffstat (limited to 'includes/install.inc')
-rw-r--r-- | includes/install.inc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/includes/install.inc b/includes/install.inc index 6f8a86f65..472cc9407 100644 --- a/includes/install.inc +++ b/includes/install.inc @@ -27,13 +27,16 @@ foreach (module_list() as $module) { * FALSE. */ function drupal_get_schema_versions($module) { - if (!($max = module_invoke($module, 'version', SCHEMA))) { - return FALSE; + $functions = get_defined_functions(); + foreach ($functions['user'] as $function) { + if (strpos($function, $module .'_update') === 0) { + $updates[] = (int) substr($function, strlen($module .'_update_')); + } } - if (!($min = module_invoke($module, 'version', SCHEMA_MIN))) { - $min = 1; + if (count($updates) == 0) { + return FALSE; } - return range($min, $max); + return $updates; } /** |