I'm currently including a
.inc file in
hook_init(), but now need to call a function from that include inside of
hook_node_access(). I've just discovered that, because
hook_node_access() runs very early on, my file is not included. I then tried to do it inside of
hook_boot() because the documentation suggests that it runs sooner, but it's still not available to me. I'm temporarily including the file in my .module outside of any function via a simple
require_once DRUPAL_ROOT . '/sites/all/modules/...
but would prefer not to do it this way.