Jump to main content Jump to doc navigation

modX::removeEventListener

Remove an event from the eventMap so it will not be invoked.

Syntax

API Doc: modX::removeEventListener()

boolean removeEventListener (string $event)

Example

Prevent any Events from firing on 'OnChunkRender':

$modx->removeEventListener('OnChunkRender');

See Also