pay_handler_field_handler.inc in Pay 6
Same filename and directory in other branches
A field hander for payment forms.
File
includes/views/pay_handler_field_handler.incView 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
Name | Description |
---|---|
pay_handler_field_handler | @file A field hander for payment forms. |