1f693efbcSTobias Sarnowski<?php 223684d4aSAndreas Gohr/** 323684d4aSAndreas Gohr * Plugin for testing the test system 423684d4aSAndreas Gohr * 523684d4aSAndreas Gohr * This plugin doesn't really do anything and should always be disabled 623684d4aSAndreas Gohr * 723684d4aSAndreas Gohr * @author Tobias Sarnowski <tobias@trustedco.de> 823684d4aSAndreas Gohr */ 9f693efbcSTobias Sarnowskiclass action_plugin_testing extends DokuWiki_Action_Plugin { 10*e8b5a4f9SAndreas Gohr 11*e8b5a4f9SAndreas Gohr function register(Doku_Event_Handler $controller) { 12f693efbcSTobias Sarnowski $controller->register_hook('DOKUWIKI_STARTED', 'AFTER', $this, 'dokuwikiStarted'); 13f693efbcSTobias Sarnowski } 14f693efbcSTobias Sarnowski 15f693efbcSTobias Sarnowski function dokuwikiStarted() { 16f693efbcSTobias Sarnowski $param = array(); 17f693efbcSTobias Sarnowski trigger_event('TESTING_PLUGIN_INSTALLED', $param); 1823684d4aSAndreas Gohr msg('The testing plugin is enabled and should be disabled.',-1); 19f693efbcSTobias Sarnowski } 20f693efbcSTobias Sarnowski} 21