--- plus1/plus1.module.original	wo mrt 18 06:04:42 2009
+++ plus1/plus1.module	vr feb 12 16:57:44 2010
@@ -78,6 +78,13 @@
     '#default_value' => variable_get('plus1_in_full_view', 1),
   );
 
+  $form['plus1_display']['plus1_content_links'] = array(
+    '#type' => 'select',
+    '#title' => t('Add the +1 voting widget to'),
+    '#options' => array('content' => t('the node content'), 'links' => t("the node's links section")),
+    '#default_value' => variable_get('plus1_content_links', 'content'),
+  );
+
   $form['plus1_text'] = array(
     '#type' => 'fieldset',
     '#title' => t('Text settings'),
@@ -221,7 +228,7 @@
   switch ($op) {
     case 'view':
       // Only show the voting widget in allowed content types.
-      if (in_array($node->type, variable_get('plus1_nodetypes', array('story')))) {
+      if (in_array($node->type, variable_get('plus1_nodetypes', array('story'))) && variable_get('plus1_content_links', 'content') == 'content') {
         // Show the widget.
         if (($teaser && variable_get('plus1_in_teaser', 0)) || (!$teaser && variable_get('plus1_in_full_view', 1))) {
           $node->content['plus1_widget'] = array(
@@ -240,6 +247,22 @@
 }
 
 /**
+* Implementation of hook_link().
+*/
+function plus1_link($type, $object, $teaser = FALSE) {
+  $links = array();
+
+  if ($type == 'node' && in_array($object->type, variable_get('plus1_nodetypes', array())) && variable_get('plus1_content_links', 'content') == 'links') {
+    $links['plus1'] = array(
+      'title' => plus1_jquery_widget($object, $teaser, $page),
+      'html' => TRUE,
+    );
+  }
+
+  return $links;
+}
+
+/**
 * Implementation of hook_theme().
 */
 function plus1_theme() {
