xref: /dokuwiki/lib/plugins/testing/action.php (revision 0e65a4846cba3dee39cbd53b702a833788e6fec0)
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    function register(&$controller) {
11        $controller->register_hook('DOKUWIKI_STARTED', 'AFTER', $this, 'dokuwikiStarted');
12    }
13
14    function dokuwikiStarted() {
15        $param = array();
16        trigger_event('TESTING_PLUGIN_INSTALLED', $param);
17        msg('The testing plugin is enabled and should be disabled.',-1);
18    }
19}
20