When looking for update functions, lowercase the module name, because PHP functions are lowercased.
Index: core/includes/install.inc
===================================================================
--- core/includes/install.inc (revision 41)
+++ core/includes/install.inc (working copy)
@@ -39,6 +39,7 @@
function drupal_get_schema_versions($module) {
$updates = array();
$functions = get_defined_functions();
+ $module = strtolower($module);
foreach ($functions['user'] as $function) {
if (strpos($function, $module .'_update_') === 0) {
$version = substr($function, strlen($module .'_update_'));
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | install.patch | 525 bytes | stashlbai |
Comments
Comment #1
stashlbai commentedThis patch also works against v6.1.
Comment #2
drummI reviewed all calls to drupal_get_schema_versions() in 5.x core and did not identify any ways for improperly-capitalized module names to get passed to drupal_get_schema_versions(). Contributed code should use valid module names and not depend on core to clean up mistakes.