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_fckg_delete extends DokuWiki_Action_Plugin { 12 //store the namespaces for sorting 13 var $sortEdit = array(); 14 var $helper = false; 15 var $commit = false; 16 17 /** 18 * Constructor 19 */ 20 function action_plugin_fckg_delete(){ 21 } 22 23 24 function register(Doku_Event_Handler $controller) { 25 $controller->register_hook('DOKUWIKI_STARTED', 'BEFORE', $this, 'fckg_delete_preprocess'); 26 } 27 28 function fckg_delete_preprocess(&$event){ 29 global $ACT; 30 if (! is_array($ACT) || !(isset($ACT['delete']))) return; 31 global $TEXT; 32 $TEXT = NULL; 33 unset($ACT['delete']); 34 $ACT['save'] = "Speichern"; 35 } 36 37 38} //end of action class 39?> 40