Initialization/registration
- Home
- Developing modules
- Initialization/registration
There is a file in the module called sprout_load.php
which gets called on every pageload.
It's typically filled with calls the the Register
helper to register various things.
Register methods for front-end include:
- contentReplace
- emailText
- extraPage
- feature
- frontEndController
- linkspec
- moderator
- modules
- sitemapGen
- cronJob
There is also a file called admin_load.php
which is the same but only called for admin pageloads.
Register methods for admin include:
- adminControllers
- adminTile
- widgetTile
- docImport
- pageattr
- rteLibrary