function crm_core_contact_handler_field_contact::render in CRM Core 7
Same name in this branch
- 7 modules/crm_core_contact/includes/views/handlers/crm_core_contact_handler_field_contact.inc \crm_core_contact_handler_field_contact::render()
- 7 modules/crm_core_contact/includes/views/handlers/crm_core_contact_handler_field_contact_link.inc \crm_core_contact_handler_field_contact::render()
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides views_handler_field::render
File
- modules/
crm_core_contact/ includes/ views/ handlers/ crm_core_contact_handler_field_contact_link.inc, line 36
Class
- crm_core_contact_handler_field_contact
- A link to a CRM Core Contact.
Code
function render($values) {
$text = !empty($this->options['text']) ? $this->options['text'] : t('view');
$contact_id = $values->{$this->aliases['contact_id']};
return l($text, 'crm-core/contact/' . $contact_id);
}