You are here

pay_handler_field_handler.inc in Pay 6

Same filename and directory in other branches
  1. 7 includes/views/pay_handler_field_handler.inc

A field hander for payment forms.

File

includes/views/pay_handler_field_handler.inc
View source
<?php

// $Id$

/**
 * @file
 * A field hander for payment forms.
 */
class pay_handler_field_handler extends views_handler_field {
  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'];
    }
  }

}

Classes

Namesort descending Description
pay_handler_field_handler @file A field hander for payment forms.