I get this error on the admin page:

Notice: Use of undefined constant REQUIREMENT_ERROR - assumed 'REQUIREMENT_ERROR' in messaging_requirements() (line 494 of sites/all/modules/contrib/messaging/messaging.module).

Looks like this is because hook_requirements() is in the module file, which is the wrong place for it.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jacob.embree’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
2.19 KB

I don't see the error, but the documentation does say

Note that this hook, like all others dealing with installation and updates, must reside in a module_name.install file, or it will not properly abort the installation of the module if a critical requirement is missing.