You are here

function comment_notify_validate in Comment Notify 5

save our data.

File

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

Code

function comment_notify_validate($form_id, $form_values) {
  if ($form_values['optin']) {
    foreach (array(
      'optin',
    ) as $field) {
      $_SESSION['comment_notify'][$field] = $form_values[$field];
    }
  }
  else {
    foreach (array(
      'optin',
    ) as $field) {
      unset($_SESSION['comment_notify'][$field]);
    }
  }
}