From 98aafb569ee3413b93cd9c25844b6494d6490693 Mon Sep 17 00:00:00 2001 From: Hakan Sandell Date: Sat, 10 Sep 2011 10:59:10 +0200 Subject: Code cleanup documentation before merge Function get_plugin_components() moved to extantion manager --- inc/pluginutils.php | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'inc/pluginutils.php') diff --git a/inc/pluginutils.php b/inc/pluginutils.php index 897020a6c..53cfedf82 100644 --- a/inc/pluginutils.php +++ b/inc/pluginutils.php @@ -40,30 +40,3 @@ function plugin_getcascade() { global $plugin_controller; return $plugin_controller->getCascade(); } -/** - * return a list (name & type) of all the component plugins that make up this plugin - * - */ -function get_plugin_components($plugin) { - global $plugin_types; - static $plugins; - if(empty($plugins[$plugin])) { - $components = array(); - $path = DOKU_PLUGIN.plugin_directory($plugin).'/'; - - foreach ($plugin_types as $type) { - if (@file_exists($path.$type.'.php')) { $components[] = array('name'=>$plugin, 'type'=>$type); continue; } - - if ($dh = @opendir($path.$type.'/')) { - while (false !== ($cp = readdir($dh))) { - if ($cp == '.' || $cp == '..' || strtolower(substr($cp,-4)) != '.php') continue; - - $components[] = array('name'=>$plugin.'_'.substr($cp, 0, -4), 'type'=>$type); - } - closedir($dh); - } - } - $plugins[$plugin] = $components; - } - return $plugins[$plugin]; -} -- cgit v1.2.3