--- /f/projects/drupal/cvs/drupal/includes/theme.inc	2006-07-19 01:36:45.156250000 -0400
+++ includes/theme.inc	2006-07-19 01:31:38.687500000 -0400
@@ -877,8 +877,9 @@ function theme_stylesheet_import($path, 
  * @param $items
  *   An array of items to be displayed in the list. If an item is a string,
  *   then it is used as is. If an item is an array, then the "data" element of
- *   the array is used as the contents of the list item and all other elements
- *   are treated as attributes of the list item element.
+ *   the array is used as the contents of the list item. If an item is an array
+ *   with a "children" element, those children are displayed in a nested list.
+ *   All other elements are treated as attributes of the list item element.
  * @param $title
  *   The title of the list.
  * @param $attributes
@@ -898,11 +899,15 @@ function theme_item_list($items = array(
     $output .= "<$type" . drupal_attributes($attributes) . '>';
     foreach ($items as $item) {
       $attributes = array();
+      $children = array();
       if (is_array($item)) {
         foreach ($item as $key => $value) {
           if ($key == 'data') {
             $data = $value;
           }
+          elseif ($key == 'children') {
+            $children = $value;
+          }
           else {
             $attributes[$key] = $value;
           }
@@ -911,6 +916,9 @@ function theme_item_list($items = array(
       else {
         $data = $item;
       }
+      if ($children) {
+        $data .= theme_item_list($children, NULL, $type, $attributes); // Render nested list
+      }
       $output .= '<li' . drupal_attributes($attributes) . '>'. $data .'</li>';
     }
     $output .= "</$type>";
