using the module_custom directory

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

using the module_custom directory

Post by jmcgin51 »

Is there any secret to using this functionality?

In another thread, someone posted that:
"This functionality was added in the 0.12 series to allow overriding any string in any module without having to worry about re-changing that file when you upgrade the module."

If you include a customized version of a file in the module_custom, do you have to remove it from the "normal" module directory?  For example, if I customize FrontEndUsers.api.php and put the customized version in module_custom/FrontEndUsers, should I remove FrontEndUsers.api.php from the modules/FrontEndUsers directory?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: using the module_custom directory

Post by calguy1000 »

The module_custom stuff is only for language strings, not for the code php files.

The system only looks in the module_custom directory when doing a language lookup.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: using the module_custom directory

Post by jmcgin51 »

ok, that makes sense - thanks...
Post Reply

Return to “CMSMS Core”