--- /Applications/XAMPP/xamppfiles/htdocs/snipeit/sites/all/modules/userpoints/userpoints.views.inc.bak
+++ userpoints.views.inc
@@ -98,5 +98,183 @@
     ),
   );
 
+
+
+
+
+	// userpoints_txn table
+	$data['userpoints_txn']['table']['group']  = t('Userpoints Transactions');
+
+	$data['userpoints_txn']['table']['base'] = array(
+	  'field' => 'txn_id',
+	  'title' => t('Userpoints Transactions'),
+	  'help' => t('!Points transactions accumulated by users on your site.', userpoints_translation()),
+	);
+
+	$data['userpoints_txn']['table']['join'] = array(
+	  'users' => array(
+	    'left_field' => 'uid',
+	    'field' => 'uid',
+	  ),
+	  'term_data' => array(
+	    'left_field' => 'tid',
+	    'field' => 'tid',
+	  ),
+	  // This goes to the node so that we have consistent authorship.
+	  'node_revisions' => array(
+	    'left_table' => 'node',
+	    'left_field' => 'uid',
+	    'field' => 'uid',
+	  ),
+	);
+
+	// Describe the points column of the userpoints table.
+	$data['userpoints_txn']['points'] = array(
+	  'title' => t('!Points', userpoints_translation()),
+	  'help' => t("A User's !points for this transaction.", userpoints_translation()), // The help that appears on the UI,
+	  'field' => array(
+	    'handler' => 'views_handler_field_numeric',
+	    'click sortable' => TRUE,
+	  ),
+	  'argument' => array(
+	    'handler' => 'views_handler_argument_numeric',
+	    'numeric' => TRUE,
+	    'name field' => 'points', // display this field in the summary
+	  ),
+	  'filter' => array(
+	    'handler' => 'views_handler_filter_numeric',
+	  ),
+	  'sort' => array(
+	    'handler' => 'views_handler_sort',
+	  ),
+	);
+
+	  // Describe the tid column of the userpoints table.
+	$data['userpoints_txn']['tid'] = array(
+	  'title' => t('Userpoints Category', userpoints_translation()),
+	  'help' => t('The categories (terms) of userpoints used for this transaction', userpoints_translation()), // The help that appears on the UI,
+	  'field' => array(
+	    'handler' => 'views_handler_filter_term_node_tid',
+	  ),
+	  'argument' => array(
+	    'handler' => 'views_handler_filter_term_node_tid',
+	    'numeric' => TRUE,
+	    'name field' => 'category', // display this field in the summary
+	  ),
+	  'filter' => array(
+		    'handler' => 'views_handler_filter_term_node_tid',
+	  ),
+	  'sort' => array(
+	    'handler' => 'views_handler_sort',
+	  ),
+	);
+
+	// Add relationship to user table.
+	$data['userpoints_txn']['uid'] = array(
+	  'title' => t('User'),
+	  'help' => t('Relate the userpoints table to the user table.'),
+	  'argument' => array(
+	    'handler' => 'views_handler_argument_numeric',
+	    'numeric' => TRUE,
+	  ),
+	  'relationship' => array(
+	    'base' => 'users',
+	    'field' => 'uid',
+	    'label' => t('Users'),
+	    'handler' => 'views_handler_relationship',
+	  ),
+	);
+
+	$data['userpoints_txn']['time_stamp'] = array(
+	  'title' => t('Timestamp'),
+	  'help' => t('The created timestamp for the transaction.'),
+		'field' => array(
+	      'handler' => 'views_handler_field_date',
+	    ),
+	);
+	
+	$data['userpoints_txn']['changed'] = array(
+	  'title' => t('Changed'),
+	  'help' => t('The changed timestamp for the transaction, for when the transaction is updated.'),
+		'field' => array(
+	      'handler' => 'views_handler_field_date',
+	    ),
+	);
+	
+	$data['userpoints_txn']['status'] = array(
+	  'title' => t('Status'),
+	  'help' => t('The status of the transaction.'),
+		'field' => array(
+	      'handler' => 'views_handler_field_numeric',
+	    ),
+	);
+	
+	$data['userpoints_txn']['description'] = array(
+	  'title' => t('Description'),
+	  'help' => t('The description for the transaction.'),
+		'field' => array(
+	      'handler' => 'views_handler_field',
+	    ),
+	);
+	
+	$data['userpoints_txn']['reference'] = array(
+	  'title' => t('Reference'),
+	  'help' => t('The reference for the transaction.'),
+		'field' => array(
+	      'handler' => 'views_handler_field',
+	    ),
+	);
+	
+	$data['userpoints_txn']['expirydate'] = array(
+	  'title' => t('Expiry date'),
+	  'help' => t('The expiration date for the transaction.'),
+		'field' => array(
+	      'handler' => 'views_handler_field_date',
+	    ),
+	);
+	
+	$data['userpoints_txn']['expired'] = array(
+	  'title' => t('Expired'),
+	  'help' => t('The expiry status for the transaction.'),
+		'field' => array(
+	      'handler' => 'views_handler_field_numeric',
+	    ),
+	);
+	
+	$data['userpoints_txn']['entity_id'] = array(
+	  'title' => t('Entity ID'),
+	  'help' => t('The entity_id field. Used to relate to the node table.'),
+		'field' => array(
+	      'handler' => 'views_handler_field',
+	    ),
+	  'argument' => array(
+	    'handler' => 'views_handler_argument_numeric',
+	    'numeric' => TRUE,
+	  ),
+	  'relationship' => array(
+	    'base' => 'node',
+	    'field' => 'nid',
+	    'label' => t('Entity'),
+	    'handler' => 'views_handler_relationship',
+	  ),
+	);
+	
+	$data['userpoints_txn']['entity_type'] = array(
+	  'title' => t('Entity type'),
+	  'help' => t('The entity type for the transaction.'),
+		'field' => array(
+	      'handler' => 'views_handler_field',
+	    ),
+	);
+	
+	$data['userpoints_txn']['operation'] = array(
+	  'title' => t('Operation'),
+	  'help' => t('The operation for the transaction.'),
+		'field' => array(
+	      'handler' => 'views_handler_field',
+	    ),
+	);
+
+
   return $data;
 }
