### Eclipse Workspace Patch 1.0
#P FacebookShare
Index: facebookshare.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/facebookshare/facebookshare.admin.inc,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 facebookshare.admin.inc
--- facebookshare.admin.inc	8 Apr 2010 02:19:06 -0000	1.1.2.1
+++ facebookshare.admin.inc	20 Jul 2010 22:03:42 -0000
@@ -29,6 +29,13 @@
     ),
     '#default_value' => variable_get('facebookshare_location', array()),
   );
+  $form['facebookshare_weight'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Weight'),
+    '#description' => t('The weight of which the Facebook widget should appear on the content.'),
+    '#default_value' => variable_get('facebookshare_weight', '-10'),
+    '#size' => 5,
+  );
   $sizes = array('box_count' => '', 'button_count' => '', 'button' => '', 'icon_link' => '', 'icon' => '');
   foreach ($sizes as $size => $button) {
     $sizes[$size] = theme(
Index: facebookshare.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/facebookshare/facebookshare.module,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 facebookshare.module
--- facebookshare.module	8 Apr 2010 02:19:06 -0000	1.1.2.1
+++ facebookshare.module	20 Jul 2010 22:03:42 -0000
@@ -71,9 +71,10 @@
     // Check in the teaser and full view.
     if (($teaser && !empty($location['teasers'])) || (!$teaser && !empty($location['content']))) {
       drupal_add_css(drupal_get_path('module', 'facebookshare') . '/facebookshare.css');
+      $weight = variable_get('facebookshare_weight', -10);
       $node->content['facebookshare'] = array(
         '#value' => theme('facebookshare', $url),
-        '#weight' => -10,
+        '#weight' => is_numeric($weight) ? (int)$weight : -10,
       );
     }
   }
