Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
hook_requirements() should not be in the module file, but in the install file.
hook_requirements() should not be in the module file, but in the install file.
Comments
Comment #1
joachim CreditAttribution: joachim commentedFixed.
Comment #2
joachim CreditAttribution: joachim commentedBackported to 6.x-2.x.
Comment #3
tirdadc CreditAttribution: tirdadc commentedhttps://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
Comment #4
joachim CreditAttribution: joachim commentedThanks!