1<?php 2if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../../').'/'); 3if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); 4require_once(DOKU_PLUGIN.'action.php'); 5 6/** 7 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 8 * @author Pierre Spring <pierre.spring@liip.ch> 9 */ 10 11class action_plugin_ckgedit_delete extends DokuWiki_Action_Plugin { 12 13 14 function register(Doku_Event_Handler $controller) { 15 $controller->register_hook('DOKUWIKI_STARTED', 'BEFORE', $this, 'ckgedit_delete_preprocess'); 16 } 17 18 function ckgedit_delete_preprocess(Doku_Event $event){ 19 global $ACT; 20 if (! is_array($ACT) || !(isset($ACT['delete']))) return; 21 global $TEXT; 22 $TEXT = NULL; 23 unset($ACT['delete']); 24 $ACT['save'] = "Speichern"; 25 } 26 27 28} //end of action class 29?> 30