You are here

function PaymentViewsHandlerFieldPaymentMethodControllerTitle::render in Payment 7

Implements views_handler_field::render().

Overrides views_handler_field::render

File

views/PaymentViewsHandlerFieldPaymentMethodControllerTitle.inc, line 16
A views field handler. See payment_views_data().

Class

PaymentViewsHandlerFieldPaymentMethodControllerTitle
Views field handler for a payment method's controller title.

Code

function render($values) {
  if ($controller = payment_method_controller_load($this
    ->get_value($values), TRUE)) {
    return $controller->title;
  }
}