Atm I have a hook_install with about 3000 lines. So for making the code more transparent, is there an option to divide this up into multiple external files bei .inc?

Comments

kunalkursija’s picture

Hi maen,

I think you want to divide this function into sub functions, where sub functions will be placed inside INC files, thereby increasing code readability.

If thats the case then MODULE_LOAD_INCLUDE() will help you.

maen’s picture

I'll test this.