'uid', 'title' => t('Userpoints'), 'help' => t('Points accumulated by users on your site.'), ); $data['userpoints']['table']['join'] = array( 'users' => array( 'left_field' => 'uid', 'field' => 'uid', ), 'node' => array( 'left_field' => 'uid', 'field' => 'uid', ), // 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']['points'] = array( 'title' => t('Points'), 'help' => t("A User's current points."), // 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', ), ); return $data; }