class pay_handler_field_handler in Pay 6
Same name and namespace in other branches
- 7 includes/views/pay_handler_field_handler.inc \pay_handler_field_handler
@file A field hander for payment forms.
Hierarchy
- class \pay_handler_field_handler extends \views_handler_field
Expanded class hierarchy of pay_handler_field_handler
1 string reference to 'pay_handler_field_handler'
- pay_views_data in includes/
views/ pay.views.inc - Implementation of hook_views_data(). TODO
File
- includes/
views/ pay_handler_field_handler.inc, line 8 - A field hander for payment forms.
View source
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'];
}
}
}