I ran into an issue where module_load_include() was failing in content.module - see also discussion on #599122: Do not use module_load_include() in global context. Patch converts that to just require_once 'the_file.inc'; since we know where they are anyway.

CommentFileSizeAuthor
require.patch918 bytescatch

Comments

markus_petrux’s picture

Status: Active » Postponed (maintainer needs more info)

hmm... actually, I think require_once 'includes/content.token.inc'; will fail (unless CCK installation directory is in the include path) because Drupal runs from Drupal root, and that file does not exist there.

That issue is related to D7. Any pointer on when module_load_include() is not reliable when used from hook_init() in D6?