tags:

views:

195

answers:

1

I think the title says it all.

+4  A: 

module_load_include will find the path to the module listed and then the file inside that module's folder, which in some multi-site (or now, with installation profiles) can be different. It's just a step to reduce the code needed to be generalized enough for the entire community.

Chris Ridenour
it may be less clear if you're including a file in your own module - it's probably just in a subfolder. If you're including from another module however, you never know if it's in sites/all/modules, sites/default/modules, etc.... Module_load_include will also return false if the file doesn't exist, rather than throwing a PHP error
GApple

related questions