No one likes typing in the number of schema versions (updates) a module has. This patch reimplements drupal_get_schema_versions() to use reflection to find out which update functions are defined.

CommentFileSizeAuthor
#3 fix_versions.patch1.57 KBdrumm
install.inc.diff938 bytesdrumm
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drumm’s picture

(system_versions() isn't removed by this because I have another more critical patch which that would conflict with.)

Dries’s picture

Status: Needs review » Fixed

Committed to HEAD. Thanks.

drumm’s picture

Status: Fixed » Needs review
FileSize
1.57 KB

There was still some code expecting the hook. This changes it to use the versions array. And the update function finding is a bit more strict, node_update_index() was being mistaken as node_update_0().

Dries’s picture

Status: Needs review » Fixed

Committed to HEAD. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)