diff -uprN nodeimageblock.old/nodeimageblock.info nodeimageblock/nodeimageblock.info
--- nodeimageblock.old/nodeimageblock.info	1970-01-01 01:00:00.000000000 +0100
+++ nodeimageblock/nodeimageblock.info	2007-05-29 12:47:21.000000000 +0200
@@ -0,0 +1,4 @@
+; $Id$
+name = Node Image Block
+description = Provides a block to displays all images attached to a node.
+dependencies = upload
diff -uprN nodeimageblock.old/nodeimageblock.module nodeimageblock/nodeimageblock.module
--- nodeimageblock.old/nodeimageblock.module	2006-03-20 12:40:24.000000000 +0100
+++ nodeimageblock/nodeimageblock.module	2007-05-29 12:50:34.000000000 +0200
@@ -7,79 +7,68 @@
 
 
 /**
- * Implementation of hook_help().
- */
-function nodeimageblock_help($section) {
-  switch ($section) {
-    case 'admin/modules#description':
-      return t('Provides a block to displays all images attached to a node.');
-  }
-}
-
-/**
  * Implementation of hook_block().
  *
  * Displays all images that are attached to the current node
  */
 function nodeimageblock_block($op = 'list', $delta = 0) {
   if ($op == 'list') {
-	  $block[0]['info'] = 'Node Image';
+    $block[0]['info'] = 'Node Image';
   }
-  elseif($op == 'view') {
-    if(arg(0) == 'node') {
+  elseif ($op == 'view') {
+    if (arg(0) == 'node') {
       $nid = arg(1);
-  		if ($node = node_load(array('nid' => $nid))) {
+      if ($node = node_load(array('nid' => $nid))) {
 
-  		  // Get all images associated with this node
-  			$imagesrc = _nodeimageblock_get_node_images($node);
+        // Get all images associated with this node
+        $imagesrc = _nodeimageblock_get_node_images($node);
 
-  			if(count($imagesrc) > 0) {
-  			  $output = '';
-    			foreach($imagesrc as $img) {
-      			$output .= theme('nodeimageblock_block_item', $node, $img);
+        if (count($imagesrc) > 0) {
+          $output = '';
+          foreach ($imagesrc as $img) {
+            $output .= theme('nodeimageblock_block_item', $node, $img);
           }
 
-    			$block['subject'] = '';
-    			$block['content'] = theme('nodeimageblock_block', $output);
-  			}
-  		}
-	  }
+          $block['subject'] = '';
+          $block['content'] = theme('nodeimageblock_block', $output);
+        }
+      }
+    }
   }
 
   return $block;
 }
 
 function theme_nodeimageblock_block($items) {
-	$output  = '<div id="nodeimageblock">';
-	$output .= $items;
-	$output .= '</div>';
-	return $output;
+  $output  = '<div id="nodeimageblock">';
+  $output .= $items;
+  $output .= '</div>';
+  return $output;
 }
 
 function theme_nodeimageblock_block_item($node, $imagesrc) {
-	$output = '
-	<div class="nodeimage">
-	    <img src="' . $imagesrc . '" alt="" />
-	</div>';
+  $output = '
+  <div class="nodeimage">
+      <img src="' . $imagesrc . '" alt="" />
+  </div>';
 
-	return $output;
+  return $output;
 }
 
 function _nodeimageblock_get_node_images($node) {
-	$filepath = '';
 
-	// -- if upload.module is enabled
-	if($files = module_invoke('upload', 'load', $node)) {
-		$image_mime = array("image/gif", "image/png", "image/jpeg", "image/pjpeg");
-		$images = array();
-
-		foreach($files as $key => $file){
-
-			// --- Is the file an image?
-			if(in_array($file->filemime, $image_mime)) {
-				$images[] = file_create_url($file->filepath);
-			}
-		}
-	}
-	return $images;
+  // -- if upload.module is enabled
+  if ($files = module_invoke('upload', 'load', $node)) {
+    $image_mime = array("image/gif", "image/png", "image/jpeg", "image/pjpeg");
+    $images = array();
+
+    foreach ($files as $file) {
+
+      // --- Is the file an image?
+      if (in_array($file->filemime, $image_mime)) {
+        $images[] = file_create_url($file->filepath);
+      }
+    }
+  }
+  return $images;
 }
