You are here

function UserpointsTransaction::setDisplay in User Points 7.2

Define if a message should be displayed to the user about this transaction.

This can also be overriden by the userpoints_display_message setting. If that setting is disabled, messages are never displayed.

Parameters

$display: TRUE if a message should be displayed, FALSE if not. Defaults to TRUE.

Return value

UserpointsTransaction

File

./userpoints.transaction.inc, line 457
Contains the UserpointsTransaction and related classes.

Class

UserpointsTransaction
A Userpoints transaction.

Code

function setDisplay($display) {
  $this->display = $display;
  return $this;
}