? .cvsignore
? extra_fields.patch
Index: userpoints.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/userpoints/userpoints.module,v
retrieving revision 1.68.2.22
diff -u -p -r1.68.2.22 userpoints.module
--- userpoints.module	19 Nov 2010 00:47:21 -0000	1.68.2.22
+++ userpoints.module	17 Jan 2011 16:01:20 -0000
@@ -845,8 +845,11 @@ function userpoints_user_view($account, 
     $points_list = userpoints_get_points_list($account);
 
     if (!empty($details) || $points_list) {
-      $account->content['userpoints']['title'] = array(
+      $account->content['userpoints'] = array(
+        'title' => array(
           '#markup' => '<h3>' .  t('!Points', userpoints_translation()) . '</h3>',
+        ),
+        '#weight' => 0,
       );
       if ($points_list) {
         $account->content['userpoints'] += $points_list;
@@ -856,6 +859,22 @@ function userpoints_user_view($account, 
 }
 
 /**
+ * Implements hook_field_extra_fields().
+ */
+function userpoints_field_extra_fields() {
+  $extra['user']['user'] = array(
+    'display' => array(
+      'userpoints' => array(
+        'label' => t('!Points', userpoints_translation()),
+        'description' => t('!Points related information and actions.', userpoints_translation()),
+        'weight' => 0,
+      )
+    )
+  );
+  return $extra;
+}
+
+/**
  * Returns a renderable array that displays the points and action links.
  *
  * @param $account
