xref: /dokuwiki/lib/plugins/testing/action.php (revision 4ad66524bcfeccd8ec19915dfb0a6ca536016320)
1<?php
2/**
3 * Plugin for testing the test system
4 *
5 * This plugin doesn't really do anything and should always be disabled
6 *
7 * @author Tobias Sarnowski <tobias@trustedco.de>
8 */
9class action_plugin_testing extends DokuWiki_Action_Plugin {
10
11    function register(Doku_Event_Handler $controller) {
12        $controller->register_hook('DOKUWIKI_STARTED', 'AFTER', $this, 'dokuwikiStarted');
13    }
14
15    function dokuwikiStarted() {
16        $param = array();
17        trigger_event('TESTING_PLUGIN_INSTALLED', $param);
18        msg('The testing plugin is enabled and should be disabled.',-1);
19    }
20}
21