Hello,
I'm trying to understand the source code of Gallery and the way how Gallery works.
So, I have two questions about things I don't understand.
In which file / class / method are files 'module.inc' included into Gallery? Take it place every time Gallery is invoked or are they somewhere cached?
The other question is how some module templates are included into templates of other modules? For example, how template for captcha is inserted into template register, or the link 'register' (top-right corner of the page in default installation) is inserted next to 'login' link?
thanks in advance
Posts: 70
FYI, here is the Code that puts "Register" in the system links from /modules/register/module.inc:
|| Custom Theming | Donate to Gallery ||
Posts: 8601
the answer to most of your questions is: APIs
see modules/core/classes/GalleryModule.class.. this is the module API and shows you how modules get many things added to gallery. captcha is its own api, called "GalleryValidationPlugin". module.inc files are loaded from the GalleryCoreApi::loadPlugin api.