commerce_customer_handler_field_customer_profile_type.inc in Commerce Core 7
File
modules/customer/includes/views/handlers/commerce_customer_handler_field_customer_profile_type.inc
View source
<?php
class commerce_customer_handler_field_customer_profile_type extends commerce_customer_handler_field_customer_profile {
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);
}
}