modX.addEventListener

Skip to end of metadata
Go to start of metadata


modX::addEventListener

Add a plugin to the eventMap within the current execution cycle.

Syntax

API Doc: http://api.modxcms.com/modx/modX.html#addEventListener

boolean addEventListener (string $event, integer $pluginId)

Example

Add a Plugin with ID 2 to the Event 'OnChunkPrerender':

$modx->addEventListener('OnChunkPrerender',12);

See Also

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.