hook_requirements() should not be in the module file, but in the install file.

Comments

joachim’s picture

Status: Active » Fixed

Fixed.

joachim’s picture

Backported to 6.x-2.x.

tirdadc’s picture

https://api.drupal.org/comment/25008#comment-25008

hook_requirements() should at the very least return an empty array or else it will result in a fatal error during installation with a profile. I've committed a fix to the 7.x-2.x and 6.x-2.x branches:

http://drupalcode.org/project/twitter_pull.git/commit/156a667
http://drupalcode.org/project/twitter_pull.git/commit/42fb70f

joachim’s picture

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.