While the explanation for hook_init() is correct in noting that unconditionally loaded files should be declared in info files not loaded with hook_init(), the example code unconditionally loads a file...

CommentFileSizeAuthor
hook_init-docs.patch791 byteststoeckler
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

Excellent, thanks!

jhodgdon’s picture

Title: Documentation problem with hook_init() » hook_init() example violates what doc says to do
webchick’s picture

Status: Reviewed & tested by the community » Fixed

Nice catch! Thanks!

Committed to HEAD.

Status: Fixed » Closed (fixed)

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