You are here

function comment_notify_disable_page in Comment Notify 7

Same name and namespace in other branches
  1. 6 comment_notify.module \comment_notify_disable_page()

Page callback to allow users to unsubscribe simply by visiting the page.

1 string reference to 'comment_notify_disable_page'
comment_notify_menu in ./comment_notify.module
Implements hook_menu().

File

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

Code

function comment_notify_disable_page($hash) {
  module_load_include('inc', 'comment_notify', 'comment_notify');
  if (comment_notify_unsubscribe_by_hash($hash)) {
    return t('Your comment follow-up notification for this post was disabled. Thanks.');
  }
  else {
    return t('Sorry, there was a problem unsubscribing from notifications.');
  }
}