Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As per When to use files directive in module's info file, only files with classes should be included in .info files[]
directive. hook_init()
is already loading it in the .module, if needed:
function user_relationship_mailer_init() {
module_load_include('inc', 'user_relationship_mailer', 'user_relationship_mailer_defaults');
}
Comment | File | Size | Author |
---|---|---|---|
#1 | user_relationships_1705096_useless_file_directive.patch | 460 bytes | Simon Georges |
Comments
Comment #1
Simon Georges CreditAttribution: Simon Georges commentedSee attached patch.
Comment #2
drewish CreditAttribution: drewish commentedYeah definitely not needed.
Comment #3
BerdirThanks, commited.