You are here

function notifications_views_handler_field_subscription_link_delete::render_link in Notifications 7

Overrides notifications_views_handler_field_subscription_link::render_link

File

notifications_views/includes/notifications_views_handler_field_subscription_link_delete.inc, line 6

Class

notifications_views_handler_field_subscription_link_delete
Field handler to present a link subscription delete.

Code

function render_link($data, $values) {
  $this->options['alter']['make_link'] = TRUE;
  $this->options['alter']['path'] = "notifications/subscription/" . $this
    ->get_value($values, 'sid') . "/delete";
  $this->options['alter']['query'] = drupal_get_destination();
  $text = !empty($this->options['text']) ? $this->options['text'] : t('delete');
  return $text;
}