From 6c6884a782c0876895c7e4b03740f20d8bf55d66 Mon Sep 17 00:00:00 2001
From: Marco Villegas <marvil07@gmail.com>
Date: Fri, 11 Jun 2010 01:16:48 -0500
Subject: [PATCH] feature #582624 by dixon_, marvil07: Expose widget to CCK fields reordering

---
 vud_node/vud_node.module |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git vud_node/vud_node.module vud_node/vud_node.module
index 8db6fac..735102d 100644
--- vud_node/vud_node.module
+++ vud_node/vud_node.module
@@ -294,3 +294,18 @@ function vud_node_link($type, $object, $teaser = FALSE) {
   }
   return $links;
 }
+
+/**
+ * Implementation of hook_content_extra_fields().
+ */
+function vud_node_content_extra_fields($type_name) {
+  if (in_array($type_name, variable_get('vud_node_types', array()), TRUE)) {
+    $extra = array();
+    $extra['vud_node_widget_display'] = array(
+      'label' => t('Vote Up/Down on nodes'),
+      'description' => t('Vote Up/Down module widget.'),
+      'weight' => -10,
+    );
+    return $extra;
+  }
+}
-- 
1.7.1

