'userpoints', 'provider' => 'internal', // won't show up in external list. 'join' => array( 'left' => array( 'table' => 'node', 'field' => 'uid', ), 'right' => array( 'field' => 'uid', ), ), 'fields' => array( 'points' => array( 'name' => t('Node: Author Points'), 'sortable' => true, 'option' => 'integer', 'handler' => 'views_handler_field_int', 'help' => t('Displays the number of userpoints that the author of the node currently has.'), ), 'max_points' => array( 'name' => t('Node: Author Maximum Points'), 'sortable' => true, 'option' => 'integer', 'handler' => 'views_handler_field_int', 'help' => t('Displays the maximum number of userpoints of the author of the node.'), ), ), 'sorts' => array( ), 'filters' => array( ), ); $tables['userpoints_comments'] = array( 'name' => 'userpoints', 'provider' => 'internal', // won't show up in external list. 'join' => array( 'left' => array( 'table' => 'comments', 'field' => 'uid', ), 'right' => array( 'field' => 'uid', ), ), 'fields' => array( 'points' => array( 'name' => t('Comment: Author Points'), 'sortable' => true, 'option' => 'integer', 'handler' => 'views_handler_field_int', 'help' => t('Displays the number of userpoints that the author of the comment currently has.'), ), 'max_points' => array( 'name' => t('Comment: Author Maximum Points'), 'sortable' => true, 'option' => 'integer', 'handler' => 'views_handler_field_int', 'help' => t('Displays the maximum number of userpoints of the author of the comment.'), ), ), 'sorts' => array( ), 'filters' => array( ), ); $tables['userpoints_transactions'] = array( 'name' => 'userpoints_txn', 'provider' => 'internal', // won't show up in external list. 'join' => array( 'left' => array( 'table' => 'userpoints', 'field' => 'uid', ), 'right' => array( 'field' => 'uid', ), ), 'fields' => array( 'points' => array( 'name' => t('Userpoints Transaction: Points'), 'sortable' => true, 'option' => 'integer', 'handler' => 'views_handler_field_int', 'help' => t('Displays the number of userpoints assigned in the transaction.'), ), 'time_stamp' => array( 'name' => t('Userpoints Transaction: Time'), 'sortable' => TRUE, 'handler' => views_handler_field_dates(), 'option' => 'string', 'help' => t('Displays the date & time of the transaction.'), ), ), 'sorts' => array( ), 'filters' => array( ), ); return $tables; } function userpoints_views_arguments() { } function userpoints_views_default_views() { }