You are here

function hook_userpoints_transaction_before in User Points 7.2

Invoked before a transaction is saved.

To prohibit this transaction from being saved, use UserpointsTransaction::deny().

Parameters

$transaction: A UserpointsTransaction object which contains all information about the new or updated transaction.

Related topics

1 function implements hook_userpoints_transaction_before()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

userpoints_rules_userpoints_transaction_before in userpoints_rules/userpoints_rules.module
Implements hook_userpoints().
1 invocation of hook_userpoints_transaction_before()
UserpointsTransactionController::save in ./userpoints.transaction.inc
Overrides EntityAPIController::save().

File

./userpoints.api.php, line 122
API documentation for userpoints.module

Code

function hook_userpoints_transaction_before(UserpointsTransaction $transaction) {
}