function views_handler_field_activity_type::render_text in CRM Core 7
Perform an advanced text render for the item.
This is separated out as some fields may render lists, and this allows each item to be handled individually.
Overrides views_handler_field::render_text
File
- modules/
crm_core_activity/ views/ handlers/ views_handler_field_activity_type.inc, line 34 - Views support.
Class
- views_handler_field_activity_type
- Provides a field handler for activity_type.
Code
function render_text($alter) {
if ($this->options['alter']['activity_create_link']) {
$value = $this->last_render;
if (isset($this->view->args[0])) {
return 'crm-core/contact/' . $this->view->args[0] . '/activity/add/' . $value;
}
}
return parent::render_text($alter);
}