Plugin/Events/Module: Difference between revisions
From Joomla! Documentation
| Line 23: | Line 23: | ||
==onPrepareModuleList== | ==onPrepareModuleList== | ||
===Description=== | ===Description=== | ||
This is an even that is called before the list of modules that must be renderd is created. If the <code>&modules</code> parameter is an array of module objects, the default module list is ignored. | |||
===Parameters=== | ===Parameters=== | ||
*<code>&modules</code> Reference to a empty variable for the list of modules | |||
===Return Value=== | ===Return Value=== | ||
None. Result will be omitted. | |||
==onAfterModuleList== | ==onAfterModuleList== | ||
Revision as of 14:40, 16 June 2016
This article or section is incomplete, which means it may be lacking information. You are welcome to assist in its completion by editing it as well. If this article or section has not been edited in several days, please consider helping complete the content.
This article was last edited by N9iels (talk| contribs) 10 years ago. (Purge)
In a standard installation of Joomla! we have several predefined Module events which, when triggered, call functions in the associated plugins.
onRenderModule
Description
This is an event that is called when a module on the front- or back-end is renderd.
Parameters
&moduleA reference to a Module object that holds all the data of the module&attribsAn array of attributes for the module
Return Value
None. Result will be omitted.
onAfterRenderModule
Description
This is an event that is called when after a module is renderd on the back- or front-end
Parameters
&moduleA reference to a Module object that holds all the data of the module&attribsAn array of attributes for the module
Return Value
None. Result will be omitted.
onPrepareModuleList
Description
This is an even that is called before the list of modules that must be renderd is created. If the &modules parameter is an array of module objects, the default module list is ignored.
Parameters
&modulesReference to a empty variable for the list of modules
Return Value
None. Result will be omitted.