--- imagefield_import-old.module	2008-05-16 12:25:11.000000000 -0400
+++ imagefield_import.module	2008-05-19 13:17:39.531250000 -0400
@@ -77,13 +77,13 @@ function imagefield_import_form() {
   // PHP function that sorts an array by key
   ksort($files);
   if ($files) {
-    // a little hack from the image_import.module to get the taxonmy controls onto our form---
-    // Don't know yet if it works?
     if (module_exists('taxonomy')) {
-      $form['type'] = array('#type' => 'value', '#value' => 'image');
+	  // a little hack from the image_import.module to get the taxonmy controls onto our form---
+      $form['type'] = array('#type' => 'value', '#value' => 'photo');
       $form['#node'] = new stdClass();
-      $form['#node']->type = 'image';
-      taxonomy_form_alter('imagefield_node_form', $form);
+      $form['#node']->type = 'photo';
+	  //this form id must be changed to the appropriate node type_node_form
+      taxonomy_form_alter('photo_node_form', $form);
       unset($form['type']);
       unset($form['#node']);
     }
@@ -95,9 +95,10 @@ function imagefield_import_form() {
     // a $fields multidimentional array for each of the files will need these elements
     $fields = array('filesize', 'dimensions', 'title', 'body');
     foreach ($fields as $field) {
-      $form['files'][$field][0] = NULL;
+      $form['files'][$field][0] = NULL;  //$form['files'][filesize][0], etc. = null
     }
     $filelist = array(0 => NULL);
+	//cycle through each file that was found
     foreach ($files as $file) {
       // image_get_info is a Drupal Function That Gets Details about an image
       $info = image_get_info($file->filename);
@@ -126,6 +127,7 @@ function imagefield_import_form() {
     }
     // Remove our 0 elements.
     unset($filelist[0]);
+	//I DON'T THINK THIS IS NECESSARY...WAS DONE ABOVE
     foreach ($fields as $field) {
       $form['files'][$field][0] = NULL;
     }
@@ -353,9 +355,9 @@ function imagefield_create_node_from($fi
   //if (module_exists('comment')) {
   // $node->comment = variable_get("comment_$node->type", COMMENT_NODE_READ_WRITE);
   // }
-  // if (module_exists('taxonomy')) {
-  //   $node->taxonomy = $taxonomy;
-  // }
+  if (module_exists('taxonomy')) {
+     $node->taxonomy = $taxonomy;
+   }
   $node->new_file = TRUE;
   $node->$field = array(
      array(
