You are here

function comment_notify_unsubscribe in Comment Notify 5

Same name and namespace in other branches
  1. 5.2 comment_notify.module \comment_notify_unsubscribe()
  2. 6 comment_notify.module \comment_notify_unsubscribe()
  3. 7 comment_notify.module \comment_notify_unsubscribe()

Callback for a form to unsubscribe users.

1 string reference to 'comment_notify_unsubscribe'
comment_notify_menu in ./comment_notify.module
Implementation of hook_menu().

File

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

Code

function comment_notify_unsubscribe() {
  $form['comment_notify_unsubscribe'] = array();
  $form['comment_notify_unsubscribe']['email_to_unsubscribe'] = array(
    '#type' => 'textfield',
    '#title' => t('Email to unsubscribe'),
  );
  $form['comment_notify_unsubscribe']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Unsubscribe this e-mail'),
  );
  return $form;
}