When installing Reverse Node Reference via an installation profile, PHP complains about

Fatal error: Call to undefined function db_version() in reverse_node_reference.install

This happens because the full Drupal API is not available in that case, as described in hook_requirements().

CommentFileSizeAuthor
#2 install_profile-1274072-2.patch1.03 KBAnonymous (not verified)
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

thsutton’s picture

I encountered this problem too. As oswajas said, hook_requirements() is called before the database details have been entered during installation.

Anonymous’s picture

Status: Active » Needs review
FileSize
1.03 KB

This patch removes HOOK_requirements() so that this module can be installed within an install profile. The intention is for this patch to be applied by drush make.

sblommers’s picture

Madness, fix the module instead