What is the advantage of using drupal module_load_include versus just including a file?

What is the advantage of using drupal module_load_include versus just including a file?

+3
source share
1 answer

module_load_include will find the path to the specified module, and then the file inside this module folder, which in some multisite (or now with installation profiles) may be different. This is just a step to reduce the code needed to be sufficiently generalized for the entire community.

+5
source

Source: https://habr.com/ru/post/1729251/


All Articles