--- image\contrib\image_attach\image_attach.module.1.9.2.4	Thu Mar 01 04:52:44 2007
+++ image\contrib\image_attach\image_attach.module	Sun Mar 25 23:59:47 2007
@@ -50,6 +50,13 @@ function image_attach_admin_settings() {
     '#options' => array(0 => 'Disabled', 1 => 'Enabled'),
     '#description' => t('When enabled, will allow existing image nodes to be attached instead of uploading new images.')
   );
+  $form['image_attach_weight'] = array(
+    '#type' => 'weight',
+    '#title' => t('Attached image weight'),
+    '#default_value' => variable_get('image_attach_weight', -1),
+    '#description' => t('Where in the default rendering of a node to place the image. In general, a negative number will come above the body, a positive one below.')
+  );
+  
   
   return system_settings_form($form);
 }
@@ -176,12 +183,14 @@ function image_attach_nodeapi(&$node, $o
       if($node->iid && function_exists('image_display')){
         if ($teaser) {
           $node->content['image_attach'] = array(
-            '#value' => theme('image_attach_teaser', $node)
+            '#value' => theme('image_attach_teaser', $node),
+            '#weight' => variable_get('image_attach_weight',-1),
             );
         }
         else {
           $node->content['image_attach'] = array(
-            '#value' => theme('image_attach_body', $node)
+            '#value' => theme('image_attach_body', $node),
+            '#weight' => variable_get('image_attach_weight',-1),
             );
         }
       }
