function UserpointsTransaction::setExpired in User Points 7.2
Marks a transaction as expired.
This does not affect the points total, instead, a reverting transaction must be created, see userpoints_expire_transactions().
Parameters
$expired: TRUE if the transaction should be marked as expired, FALSE if not.
Return value
File
- ./
userpoints.transaction.inc, line 308 - Contains the UserpointsTransaction and related classes.
Class
- UserpointsTransaction
- A Userpoints transaction.
Code
function setExpired($expired) {
// A transaction can always be expired but this can not be reversed.
if (!$expired && $this->expired) {
$this
->checkChange();
}
$this->expired = $expired;
return $this;
}