additional_fields['aid'] = 'aid'; } function render($values) { if (activity_delete_access($values->{$this->aliases['aid']})) { $text = !empty($this->options['text']) ? $this->options['text'] : t('delete'); return l($text, "activity/" . $values->{$this->aliases['aid']} . "/delete", array('query' => drupal_get_destination())); } else { return; } } }