? 203223_comment_notify_6x_12.patch ? 290781_comment_notify_cleanup.patch ? 296549_6x_comment_notify_anon_leave_mail.patch Index: comment_notify.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/comment_notify/comment_notify.module,v retrieving revision 1.11 diff -u -p -r1.11 comment_notify.module --- comment_notify.module 14 Aug 2008 19:16:13 -0000 1.11 +++ comment_notify.module 19 Aug 2008 17:51:25 -0000 @@ -410,9 +410,22 @@ function comment_notify_settings() { $form['comment_notify_settings'] = array(); // Only perform comment_notify for certain node types (default, all) + $anonymous_problems = ''; foreach (node_get_types('names') as $type => $name) { $checkboxes[$type] = check_plain($name); $default[] = $type; + + // If they don't have the ability to leave contact info, then we make a report + if (variable_get('comment_anonymous_'. $type, COMMENT_ANONYMOUS_MAYNOT_CONTACT) == COMMENT_ANONYMOUS_MAYNOT_CONTACT) { + $account = user_load(array('uid' => 0)); + if (user_access('Subscribe to comments', $account)) { + $anonymous_problems[] = l(t('@content-type', array('@content-type' => $name)), 'admin/content/node-type/'. $type); + } + } + } + + if (!empty($anonymous_problems)) { + drupal_set_message(t('Anonymous commenters have the permission to subscribe to comments but cannot leave their contact infromation on the following content types: !types. You should either disable subscriptions on those types here, revoke the permission for anonymous users, or enable anonymous users to leave their contact information in the comment settings.', array('!types' => implode(', ', $anonymous_problems)))); } $form['comment_notify_settings']['comment_notify_node_types'] = array(