function commerce_customer_handler_field_customer_profile_type::render in Commerce Core 7
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides commerce_customer_handler_field_customer_profile::render
File
- modules/
customer/ includes/ views/ handlers/ commerce_customer_handler_field_customer_profile_type.inc, line 7
Class
- commerce_customer_handler_field_customer_profile_type
- Field handler to translate a customer profile type into its readable form.
Code
function render($values) {
$type = $this
->get_value($values);
$value = commerce_customer_profile_type_get_name($type);
if (empty($value)) {
$value = t('Unknown');
}
return $this
->render_link($this
->sanitize_value($value), $values);
}