function commerce_payment_handler_field_message::render in Commerce Core 7
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides views_handler_field::render
File
- modules/
payment/ includes/ views/ handlers/ commerce_payment_handler_field_message.inc, line 13
Class
- commerce_payment_handler_field_message
- Field handler to display a transaction message with variable replacement.
Code
function render($values) {
$variables = $this
->get_value($values, 'message_variables');
$variables = unserialize($variables);
$value = $this
->get_value($values);
return t($value, is_array($variables) ? $variables : array());
}