function PaymentViewsHandlerFieldPaymentOperations::render in Payment 7
Implements views_handler_field::render().
Overrides views_handler_field::render
File
- views/
PaymentViewsHandlerFieldPaymentOperations.inc, line 16 - A views field handler. See payment_views_data().
Class
- PaymentViewsHandlerFieldPaymentOperations
- Views field handler for a payment's operations links.
Code
function render($values) {
$pid = $this
->get_value($values);
$links = menu_contextual_links('payment', 'payment', array(
$pid,
));
return theme('links__ctools_dropbutton', array(
'links' => $links,
'attributes' => array(
'class' => array(
'links',
'inline',
'operations',
),
),
));
}