Commit ad68988c authored by greggles's avatar greggles

task #628878 followup by greggles, Dave Reid: actually update comment_notify...

task #628878 followup by greggles, Dave Reid: actually update comment_notify for 7.x (missing hunk: not actually missing)
parent 0c53ae6e
......@@ -682,20 +682,3 @@ function comment_notify_tokens($type, $tokens, array $data = array(), array $opt
}
function comment_notify_tokens($type, $tokens, array $data = array(), array $options = array()) {
// Add the tokens for unsubscribe links
if ($type != "comment" ||!isset($data['comment'])) {
return;
}
$cid = $data['comment']->cid;
$hash = comment_notify_get_notify_hash($cid);
if (!$hash) {
return;
}
$replacements = array();
$replacements['comment:unsubscribe_url'] = url('comment_notify/disable/'. $hash, array('absolute' => TRUE));
return $replacements;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment