** -> *
[squirrelmail.git] / functions / tree.php
index 3e139252a3b261827406b9b9208fa6aac3026768..d785fef713156c57b5513d849471c74aad9908e4 100644 (file)
@@ -1,19 +1,27 @@
 <?php
 
    /**
-    * tree.php
-    * Copyright (c) 1999-2001 The Squirrelmail Development Team
-    * Licensed under the GNU GPL. For full terms see the file COPYING.
+    *   tree.php
     *
-    * This code provides various string manipulation functions that are
-    * used by the rest of the Squirrelmail code.
+    *   Copyright (c) 1999-2001 The Squirrelmail Development Team
+    *   Licensed under the GNU GPL. For full terms see the file COPYING.
     *
-    * $Id$
+    *   This code provides various string manipulation functions that are
+    *   used by the rest of the Squirrelmail code.
+    *
+    *   $Id$
     */
 
    require_once('../functions/imap.php');
 
-   // Recursive function to find the correct parent for a new node
+    /**
+    * findParentForChild
+    *
+    * Recursive function to find the correct parent for a new node
+    *
+    * @copyright    1999-2001 The Squirrelmail Development Team
+    */
+
    function findParentForChild($value, $treeIndexToStart, $tree) {
       // is $value in $tree[$treeIndexToStart]['value']
       if ((isset($tree[$treeIndexToStart])) && (strstr($value, $tree[$treeIndexToStart]['value']))) {