function crm_core_contact_handler_field_contact_revision::render in CRM Core 7
Same name in this branch
- 7 modules/crm_core_contact/includes/views/handlers/crm_core_contact_handler_field_contact_revision_link.inc \crm_core_contact_handler_field_contact_revision::render()
- 7 modules/crm_core_contact/includes/views/handlers/crm_core_contact_handler_field_contact_revision.inc \crm_core_contact_handler_field_contact_revision::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_revision_link.inc, line 36
Class
- crm_core_contact_handler_field_contact_revision
- A link to a CRM Core Contact.
Code
function render($values) {
$text = !empty($this->options['text']) ? $this->options['text'] : t('view');
$vid = $values->{$this->aliases['vid']};
return l($text, 'crm-core/contact/' . $vid);
}