...
Code Block | ||||
---|---|---|---|---|
| ||||
<?php class MyPluginMyPluginPlugin extends Plugin { ... public function getEvents() { return array( array( 'event' => "preaction", 'callback' => array("this", "run") ) // Add multiple events here ); } public function run() { // This will execute when the "preaction" event is triggered } } ?> |
...