You are here

function pay_method::set_description in Pay 6

Same name and namespace in other branches
  1. 7 includes/handlers/pay_method.inc \pay_method::set_description()

Set a default description if none is specified.

File

includes/handlers/pay_method.inc, line 104
The base class for payment activities. All payment method classes should extend this class.

Class

pay_method
@file The base class for payment activities. All payment method classes should extend this class.

Code

function set_description($val = NULL) {
  if (isset($val)) {
    $this->description = check_plain($val);
  }
  else {
    $info = pay_handlers('pay_method', $this
      ->handler());
    $this->description = $info['description'];
  }
}