You are here

function notifications_views_handler_field_subscription_link::render_link in Notifications 7

1 call to notifications_views_handler_field_subscription_link::render_link()
notifications_views_handler_field_subscription_link::render in notifications_views/includes/notifications_views_handler_field_subscription_link.inc
Render the field.
2 methods override notifications_views_handler_field_subscription_link::render_link()
notifications_views_handler_field_subscription_link_delete::render_link in notifications_views/includes/notifications_views_handler_field_subscription_link_delete.inc
notifications_views_handler_field_subscription_link_edit::render_link in notifications_views/includes/notifications_views_handler_field_subscription_link_edit.inc

File

notifications_views/includes/notifications_views_handler_field_subscription_link.inc, line 38

Class

notifications_views_handler_field_subscription_link
Field handler to present a link to the subscription.

Code

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