Commit 0c53ae6e 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 file, missing hunk)
parent 58f9c83f
This diff is collapsed.
......@@ -665,6 +665,24 @@ function comment_notify_settings_validate($form, &$form_state) {
}
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;
}
function comment_notify_tokens($type, $tokens, array $data = array(), array $options = array()) {
// Add the tokens for unsubscribe links
......
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