summaryrefslogtreecommitdiff
path: root/inc/pluginutils.php
diff options
context:
space:
mode:
authorHakan Sandell <sandell.hakan@gmail.com>2011-09-10 10:59:10 +0200
committerHakan Sandell <sandell.hakan@gmail.com>2011-09-10 10:59:10 +0200
commit98aafb569ee3413b93cd9c25844b6494d6490693 (patch)
tree07f5e7f0eba8785d01d249b4993d3f018ee150c8 /inc/pluginutils.php
parentb838050e5828b5cbf32b9e82ce11c9cc54592809 (diff)
downloadrpg-98aafb569ee3413b93cd9c25844b6494d6490693.tar.gz
rpg-98aafb569ee3413b93cd9c25844b6494d6490693.tar.bz2
Code cleanup documentation before merge
Function get_plugin_components() moved to extantion manager
Diffstat (limited to 'inc/pluginutils.php')
-rw-r--r--inc/pluginutils.php27
1 files changed, 0 insertions, 27 deletions
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];
-}