function workflow_extensions_handler_field_workflow_comment_link_edit::render in Workflow Extensions 7
Same name and namespace in other branches
- 6 views/workflow_extensions_handler_field_workflow_comment_link_edit.inc \workflow_extensions_handler_field_workflow_comment_link_edit::render()
Render the field.
Parameters
array $values: The values retrieved from the database.
Overrides views_handler_field::render
File
Class
- workflow_extensions_handler_field_workflow_comment_link_edit
- Field handler to present a link to edit a workflow log comment.
Code
function render($values) {
if (!user_access('edit workflow log')) {
return;
}
$hid = $values->{$this->aliases['hid']};
$text = empty($this->options['text']) ? t('edit comment') : $this->options['text'];
return l($text, "workflow-log/{$hid}", array(
'query' => drupal_get_destination(),
));
}