--- node_image.module.orig	2004-04-01 19:14:07.000000000 -0500
+++ node_image.module	2004-05-08 14:54:49.000000000 -0400
@@ -184,6 +184,10 @@
   switch ($op) {
 
     case "form post":
+      $valid_types = variable_get("node_image_image_node_types", array("story","page","book")); 
+      if(!in_array($node->type, $valid_types)) {
+        return;
+      }
       if(variable_get("node_image_inline_upload", 1)) {
         if(variable_get("node_image_embed_scripts", 0)) {
           $output .= "<script language=\"JavaScript\">\n";
@@ -578,7 +582,10 @@
     $output .= "<p>" . t("Warning: Term image directory is not writable!  To enable association of images with terms, ensure that the directory is writable by the web process.") . "</p>";
   }
   $output .= form_textfield(t("Path to term images"), "node_image_term_dir", variable_get("node_image_term_dir", "images/term/"), 30, 150, t("Directory must be writable by the web server process.  Don't forget the trailing /."));
-  $output .= form_select(t("Imaged Nodes"), "node_image_image_node_types", variable_get('node_image_image_node_types', array('story','page','book')), node_list(), t("Which nodes can have images attached?"), 0, 1);
+  foreach (node_list() as $type) {
+    $nodetypes[$type] = node_invoke($type, "node_name");
+  }
+  $output .= form_select(t("Imaged Nodes"), "node_image_image_node_types", variable_get('node_image_image_node_types', array('story','page','book')), $nodetypes, t("Which nodes can have images attached?"), 0, 1);
   $output .= form_select(t("Add inline upload button to node forms"), "node_image_inline_upload", variable_get("node_image_inline_upload", 1), array(t("Disabled"), t("Enabled")), t("Include \"Add inline image\" button on node forms.  Clicking this button will open a window for file upload, including creation of img text for inclusion in node body (requires Javascript enabled in browser)."));
   $output .= form_select(t("Embed scripts"), "node_image_embed_scripts", variable_get("node_image_embed_scripts", 0), array(t("Disabled"), t("Enabled")), t("By default, the javascript scripts needed to transfer image formatting are in external files.  However, in some server contexts, this seems to generate errors.  If you're having trouble with javascript, try enabling this setting to have javascript files embedded rather than externally linked."));
   $output .= form_select(t("Add fields to node forms"), "node_image_fields", variable_get("node_image_fields", 0), array(t("Disabled"), t("Enabled")), t("Add image upload fields to node create and edit forms.  Note: if you enable this functionality, you must apply a patch to the node.module; see INSTALL file."));
