feedback_handler_field_feedback_link_delete.inc 449 B

12345678910111213
  1. <?php
  2. /**
  3. * Field handler to present a link to delete a feedback entry.
  4. */
  5. class feedback_handler_field_feedback_link_delete extends feedback_handler_field_feedback_link {
  6. function render_link($data, $values) {
  7. $this->options['alter']['make_link'] = TRUE;
  8. $this->options['alter']['path'] = "admin/reports/feedback/$data/delete";
  9. $text = !empty($this->options['text']) ? $this->options['text'] : t('delete');
  10. return $text;
  11. }
  12. }