You are here

function commerce_customer_handler_field_customer_profile_link::render in Commerce Core 7

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

2 methods override commerce_customer_handler_field_customer_profile_link::render()
commerce_customer_handler_field_customer_profile_link_delete::render in modules/customer/includes/views/handlers/commerce_customer_handler_field_customer_profile_link_delete.inc
Render the field.
commerce_customer_handler_field_customer_profile_link_edit::render in modules/customer/includes/views/handlers/commerce_customer_handler_field_customer_profile_link_edit.inc
Render the field.

File

modules/customer/includes/views/handlers/commerce_customer_handler_field_customer_profile_link.inc, line 36

Class

commerce_customer_handler_field_customer_profile_link
Field handler to present a link to a customer profile.

Code

function render($values) {
  $text = !empty($this->options['text']) ? $this->options['text'] : t('view');
  $profile_id = $this
    ->get_value($values, 'profile_id');
  return l($text, 'admin/commerce/customer-profiles/' . $profile_id);
}