You are here

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

/**
 * Field handler to translate a customer profile type into its readable form.
 */
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);
  }

}

Classes

Namesort descending Description
commerce_customer_handler_field_customer_profile_type Field handler to translate a customer profile type into its readable form.