You are here

function pay_handler_field_handler::render in Pay 6

Same name and namespace in other branches
  1. 7 includes/views/pay_handler_field_handler.inc \pay_handler_field_handler::render()

File

includes/views/pay_handler_field_handler.inc, line 9
A field hander for payment forms.

Class

pay_handler_field_handler
@file A field hander for payment forms.

Code

function render(&$values) {
  $info = pay_handlers($this->definition['pay_type']);

  // Load the payment form and use the 'nice' label from hook_pay_handlers.
  $key = $values->{$this->definition['pay_key']};
  if ($pay = pay_load($this->definition['pay_type'], $key)) {
    return $info[$pay
      ->handler()]['title'];
  }
}