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