? contrib/userpoints_attachment
? contrib/userpoints_pageviews
Index: README.txt
===================================================================
RCS file: /cvs/drupal/contributions/modules/userpoints/README.txt,v
retrieving revision 1.4.2.1.2.2
diff -u -r1.4.2.1.2.2 README.txt
--- README.txt	14 Oct 2007 17:02:14 -0000	1.4.2.1.2.2
+++ README.txt	7 Dec 2007 03:31:01 -0000
@@ -109,15 +109,19 @@
   to NULL will cause the entry to be NULL, defaults are only used if the 
   parameter is not set
   
-  $uid = (int) User ID 
-  $points = (int) # of points to award the user 
-  $txn_id = (int) Transaction ID of a current points record. If present an UPDATE occurs
-  $moderation = (boolean) TRUE or FALSE. If NULL site settings are adhered to
-  $description = (string) fulltext Description presented to the user
-  $expirydate = (timestamp) timestamp the date/time when the points will be expired (depends on cron)
-  $event = (string) varchar32 descriptive identifier administrative purposes
-  $reference = (string) varchar32 indexed/searchable field on the DB
-  $tid = (int) Taxonomy ID to place these points into; MUST BE in the userpoints Vocabulary!
+  'uid'         => (int) User ID 
+  'points'      => (int) # of points to award the user 
+  'txn_id'      => (int) Transaction ID of a current points record. If
+                         present an UPDATE occurs
+  'moderation'  => (boolean) TRUE or FALSE. If NULL site settings are adhered to
+  'description' => (string) fulltext Description presented to the user
+  'expirydate'  => (timestamp) timestamp the date/time when the points will
+                               be expired (depends on cron)
+  'event'       => (string) varchar32 descriptive identifier administrative purposes
+  'reference'   => (string) varchar32 indexed/searchable field on the DB
+  'mute'        => (boolean) Whether or not to suppress "Points awarded" message
+  'tid'         => (int) Taxonomy ID to place these points into; MUST BE in
+                         the userpoints Vocabulary!
 
   Examples
     //Add 5 points to the currently logged in user
Index: userpoints.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/userpoints/userpoints.module,v
retrieving revision 1.44.2.14.2.31
diff -u -r1.44.2.14.2.31 userpoints.module
--- userpoints.module	7 Nov 2007 16:38:38 -0000	1.44.2.14.2.31
+++ userpoints.module	7 Dec 2007 03:28:27 -0000
@@ -406,6 +406,7 @@
  *    'expirydate' => timestamp or 0, 0 = non-expiring; NULL = site default
  *    'description' => 'description'
  *    'reference' => reserved for module specific use
+ *    'mute' => whether or not to suppress "points awarded" message
  *    'txn_id' => Transaction ID of points, If present an UPDATE is performed
  *    'entity_id' => ID of an entity in the Database. ex. $node->id or $user->uid
  *    'entity_type' => string of the entity type. ex. 'node' or 'user' NOT 'node-content-custom'
@@ -440,6 +441,9 @@
     if (!isset($params['reference'])) {
       $params['reference'] = NULL;
     }
+    if (!isset($params['mute'])) {
+      $params['mute'] = false;
+    }
     if (!isset($params['moderate'])) {
       //if not passed then site default is used
       $params['status'] = variable_get(USERPOINTS_POINTS_MODERATION, 0);
@@ -511,7 +515,7 @@
         ))));
   } //if moderation
 
-  if ($mesg && variable_get(USERPOINTS_DISPLAY_MESSAGE, 1) == 1) {
+  if (!$params['mute'] && $mesg && variable_get(USERPOINTS_DISPLAY_MESSAGE, 1) == 1) {
     drupal_set_message($mesg);
   }
   // Call the _userpoints hook to allow modules to act after points are awarded
