Plugin/Events/Module: Difference between revisions
From Joomla! Documentation
Marked this version for translation |
Fix typo "event" instead of "event" |
||
| Line 46: | Line 46: | ||
</translate> | </translate> | ||
<translate><!--T:17--> | <translate><!--T:17--> | ||
This is an | This is an event that is called before the list of modules that must be rendered is created. If the <code>&modules</code> parameter is an array of module objects, the default module list generated by Joomla! is ignored.</translate> | ||
<translate> | <translate> | ||
Revision as of 09:26, 17 June 2016
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 rendered.
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 rendered 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 event that is called before the list of modules that must be rendered is created. If the &modules parameter is an array of module objects, the default module list generated by Joomla! is ignored.
Parameters
&modulesReference to a empty variable for the list of modules
Return Value
None. Result will be omitted.
onAfterModuleList
Description
This is an even that is called after the list of modules that must be rendered is created.
Parameters
&modulesReference to an array of module objects
Return Value
None. Result will be omitted.
onAfterCleanModuleList
Description
This is an event that is called after the module list is cleaned.
Parameters
&modulesA reference to an array of rendered module objects
Return Value
None. Result will be omitted.