You are here

function comment_notify_get_unsubscribe_url in Comment Notify 7

Same name and namespace in other branches
  1. 8 comment_notify.module \comment_notify_get_unsubscribe_url()

Get the unsubscribe link for a comment subscriber.

Parameters

object $comment: The subscribed comment object.

Return value

A string with the internal path to the unsubscribe link, ready to be passed to the url() function.

1 call to comment_notify_get_unsubscribe_url()
comment_notify_tokens in ./comment_notify.tokens.inc
Implements hook_tokens().

File

./comment_notify.module, line 726
This module provides comment follow-up e-mail notification for anonymous and registered users.

Code

function comment_notify_get_unsubscribe_url($comment) {
  module_load_include('inc', 'comment_notify', 'comment_notify');
  if (!empty($comment->notify_hash)) {
    return 'comment_notify/disable/' . $comment->notify_hash;
  }
}