You are here

function pay_handler_field_handler::render in Pay 7

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

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::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_object($this->definition['pay_type'], $key)) {
    return $info[$pay
      ->handler()]['title'];
  }
}