|What Events Can be Registered in Joomla 1.5?|
|Written by Joe|
|Saturday, 28 June 2008 09:58|
Plug-ins in Joomla can respond to any number of events during a request.
Multiple plug-ins can respond to any one event in their group. The ordering of the plug-ins in Joomla's back end determines the order which registered functions are called. For instance, if both plug-in A and plug-in B respond to onBeforeDisplayContent, A's function registered with onBeforeDisplayContent will be called first.
A listing of when these events occur, grouped by plug-in type is as follows:
onAfterInitialise – after the framework loads, but before routing and output onAfterRoute – after routing, but before output onAfterDispatch – after the Joomla! application is started onAfterRender – after all output is processed onGetWebServices – when the XML-RPC function requests a list of valid function calls onLoginFailure – when a login attempt fails
onSearch – when a search is performed onSearchAreas – when the search component requests a list of valid search areas
AuthenticationonAuthenticate – when a user initially attempts to authenticate, provides a method for authentication
onLoginUser – after a user initally authenticates, but before fully logged in: all functions must return true finish to authenticate onLogoutUser – when a user attempts to logout: all functions must return true to logout onBeforeStoreUser – just before a user is stored in the database onAfterStoreUser – after a user is stored in the database onBeforeDeleteUser – just before a user is deleted from the system onAfterDeleteUser – just after a user is deleted from the system
onCustomEditorButton – when custom editor buttons are loaded, allows the additon of buttons
onInit – when the editor is initialized onDisplay – when the editor is ready to be displayed onGetContent – when the contents of the editor are requested onSetContent – when the contents of the editor are populated onSave – when the contents of the editor are saved onGetInsertMethod – just before the editor is output
onPrepareContent – before any output occurs onAfterDisplayTitle – just after article title is displayed onBeforeDisplayContent – just before content is output, returns output to be displayed onAfterDisplayContent – just after content is output, returns output to be displayed