--- inline.module	2004-11-22 11:04:33.000000000 +0000
+++ inline.php	2005-10-09 15:11:56.000000000 +0100
@@ -57,15 +57,22 @@
 function inline_nodeapi(&$node, $op, $arg) {
   if(is_array($node->files) && $op == 'view') {
 
-    if (preg_match_all("/\[(inline|file|attachment):(\d+)=?(.*)?\]/i", $node->body, $match)) {
+    if (preg_match_all("/\[(inline|file|attachment):(\d+|all|\*)=?(.*)?\]/i", $node->body, $match)) {
        foreach ($match[2] as $key => $value) {
-         $map[$value] = $key;
+	  if ($value == 'all' || $value == '*') {
+            $replace = '<ul>';
+            foreach ($node->files as $file) {
+		   $replace .= '<li><a href="' . file_create_url($file->filepath) . '">' . $file->filename . '</a></li>';
+	    }
+	    $replace .= '</ul>';
+   	  } else {
          $titl = $match[3][$key];
          $inline_file = _inline_filename($node, $value);
          $replace = ""; 
          if ($inline_file != "") {
            $replace = theme('inline_html', $inline_file[0], $inline_file[1], $titl);
          }
+	 }
          $mtch[] = $match[0][$key];
          $repl[] = $replace;
        }
