API functions in User Points 7.2
The function userpoints_grant_points() allows to grant a number of points, positive or negative, to a user.
File
- ./
userpoints.api.php, line 17 - API documentation for userpoints.module
Functions
Name | Location | Description |
---|---|---|
userpoints_get_categories |
./ |
Returns an array of possible categories, suitable for inclusion in FAPI. |
userpoints_get_current_points |
./ |
Get current points of a user. |
userpoints_get_max_points |
./ |
Gets the number of maximal points of that user. |
userpoints_grant_points |
./ |
Grant a user points. |
Classes
Name | Location | Description |
---|---|---|
UserpointsTransaction |
./ |
A Userpoints transaction. |
UserpointsTransactionType |
./ |
Transaction type. |
UserpointsTransactionTypeUIController |
./ |
Transaction type UI. |