You are here

function pay_method::set_title in Pay 7

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

Set a default title if none is specified.

File

includes/handlers/pay_method.inc, line 91
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_title($val = NULL) {
  if (isset($val)) {
    $this->title = check_plain($val);
  }
  else {
    $info = pay_handlers('pay_method', $this
      ->handler());
    if (!empty($info['title'])) {
      $this->title = $info['title'];
    }
  }
}