function UserpointsTransaction::setDescription in User Points 7.2
Add a description to this transaction.
Note that modules should instead implement hook_userpoints_info() and provide a description for their operations. If a description is present, it will be displayed instead of a description provided through the mentioned hook.
Parameters
$description: A description for this transaction.
Return value
File
- ./
userpoints.transaction.inc, line 229 - Contains the UserpointsTransaction and related classes.
Class
- UserpointsTransaction
- A Userpoints transaction.
Code
function setDescription($description) {
$this
->checkChange();
$this->description = $description;
return $this;
}