1<?php
2
3class action_plugin_uncmap extends DokuWiki_Action_Plugin {
4
5    public function register(Doku_Event_Handler $controller) {
6        $controller->register_hook('CONFMANAGER_CONFIGFILES_REGISTER', 'BEFORE',  $this, 'addConfigFile', array());
7    }
8
9    public function addConfigFile(Doku_Event $event, $params) {
10        if (class_exists('ConfigManagerTwoLine')) {
11            $config = new ConfigManagerTwoLine('UncMap',  file_get_contents($this->localFN('confmanager_description')),  DOKU_PLUGIN . 'uncmap/conf/mapping.php');
12            $event->data[] = $config;
13        }
14    }
15}