function comment_notify_disable_page in Comment Notify 6
Same name and namespace in other branches
- 7 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 - Implementation of hook_menu().
File
- ./
comment_notify.module, line 200 - This module provides comment follow-up e-mail notification for anonymous and registered users.
Code
function comment_notify_disable_page($hash) {
db_query("UPDATE {comment_notify} SET notify = 0 WHERE notify_hash = '%s'", $hash);
drupal_set_message(t('Your comment follow-up notification for this post was disabled. Thanks.'));
return ' ';
}