function webfm_tree in Web File Manager 5
Same name and namespace in other branches
- 5.2 webfm.module \webfm_tree()
Build directory tree
1 call to webfm_tree()
- webfm_ajax in ./
webfm.module - Ajax post requests
File
- ./
webfm.module, line 2202
Code
function webfm_tree($rootpath, $path) {
if (!isset($_SESSION['tree_' . $path])) {
$tree = array();
$tree[$path] = recurse_build_tree($rootpath . $path, false);
$_SESSION['tree_' . $path] = $tree;
return $tree;
}
return $_SESSION['tree_' . $path];
}