1ee20e7d1Sandi<?php 2ee20e7d1Sandi/** 3ee20e7d1Sandi * Utilities for handling plugins 4ee20e7d1Sandi * 5ee20e7d1Sandi * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 6ee20e7d1Sandi * @author Andreas Gohr <andi@splitbrain.org> 7ee20e7d1Sandi */ 8ee20e7d1Sandi 9087b3a7fSchris// plugin related constants 1003c4aec3Schrisif(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); 1110e43949SChris Smith 1210e43949SChris Smith/** 1310e43949SChris Smith * Original plugin functions, remain for backwards compatibility 1410e43949SChris Smith */ 15db959ae3SAndreas Gohrfunction plugin_list($type='',$all=false) { 16db959ae3SAndreas Gohr global $plugin_controller; 17db959ae3SAndreas Gohr return $plugin_controller->getList($type,$all); 18db959ae3SAndreas Gohr} 19*db6f7eaeSAndreas Gohrfunction &plugin_load($type,$name,$new=false,$disabled=false) { 20db959ae3SAndreas Gohr global $plugin_controller; 21*db6f7eaeSAndreas Gohr return $plugin_controller->load($type,$name,$new,$disabled); 22db959ae3SAndreas Gohr} 23db959ae3SAndreas Gohrfunction plugin_isdisabled($plugin) { 24db959ae3SAndreas Gohr global $plugin_controller; 25db959ae3SAndreas Gohr return $plugin_controller->isdisabled($plugin); 26db959ae3SAndreas Gohr} 27db959ae3SAndreas Gohrfunction plugin_enable($plugin) { 28db959ae3SAndreas Gohr global $plugin_controller; 29db959ae3SAndreas Gohr return $plugin_controller->enable($plugin); 30db959ae3SAndreas Gohr} 31db959ae3SAndreas Gohrfunction plugin_disable($plugin) { 32db959ae3SAndreas Gohr global $plugin_controller; 33db959ae3SAndreas Gohr return $plugin_controller->disable($plugin); 34db959ae3SAndreas Gohr} 35db959ae3SAndreas Gohrfunction plugin_directory($plugin) { 36db959ae3SAndreas Gohr global $plugin_controller; 37db959ae3SAndreas Gohr return $plugin_controller->get_directory($plugin); 38db959ae3SAndreas Gohr} 39