標準以外のモジュールを使っている場合はそれをコピーします。
% cp -pr somewhere/foobar/modules/taxonomy_context.css modules/
% cp -p somewhere/foobar/modules/taxonomy_context.modules modules/
% cp -p somewhere/foobar/modules/gsitemap.module modules/
contactモジュールでユーザにCcできるようにしたままだと、spamの踏み台にされる可能性があるのでcontact.moduleのcopy関連の部分を削除します。
--- contact.module.orig 2006-04-18 05:48:26.000000000 +0900
+++ contact.module 2006-05-25 19:22:15.000000000 +0900
@@ -338,9 +338,6 @@
'#rows' => 15,
'#required' => TRUE,
);
- $form['copy'] = array('#type' => 'checkbox',
- '#title' => t('Send me a copy.'),
- );
$form['submit'] = array('#type' => 'submit',
'#value' => t('Send e-mail'),
);
@@ -386,11 +383,6 @@
// Send the e-mail:
user_mail($to, $subject, $body, "From: $from\nReply-to: $from\nX-Mailer: Drupal\nReturn-path: $from\nErrors-to: $from");
- // Send a copy if requested:
- if ($edit['copy']) {
- user_mail($from, $subject, $body, "From: $from\nReply-to: $from\nX-Mailer: Drupal\nReturn-path: $from\nErrors-to: $from");
- }
-
// Log the operation:
flood_register_event('contact');
watchdog('mail', t('%name-from sent %name-to an e-mail.', array('%name-from' => theme('placeholder', $user->name), '%name-to' => theme('placeholder', $account->name))));
@@ -469,9 +461,6 @@
'#title' => t('Message'),
'#required' => TRUE,
);
- $form['copy'] = array('#type' => 'checkbox',
- '#title' => t('Send me a copy.'),
- );
$form['submit'] = array('#type' => 'submit',
'#value' => t('Send e-mail'),
);
@@ -527,11 +516,6 @@
// Send the e-mail to the recipients:
user_mail($contact->recipients, $subject, $body, "From: $from\nReply-to: $from\nX-Mailer: Drupal\nReturn-path: $from\nErrors-to: $from");
- // If the user requests it, send a copy.
- if ($edit['copy']) {
- user_mail($from, $subject, $body, "From: $from\nReply-to: $from\nX-Mailer: Drupal\nReturn-path: $from\nErrors-to: $from");
- }
-
// Send an auto-reply if necessary:
if ($contact->reply) {
user_mail($from, $subject, wordwrap($contact->reply), "From: $contact->recipients\nReply-to: $contact->recipients\nX-Mailer: Drupal\nReturn-path: $contact->recipients\nErrors-to: $contact->recipients");