wesley tanaka

Remove the CC checkbox from Drupal contact forms

Drupal core contains a contact.module which allows users of a Drupal site to contact each other through email. The contact form displays a "Send yourself a copy" checkbox. This Drupal 5/6 module gets rid of that checkbox.

Disabling the checkbox might be useful if you have only the site-wide contact form enabled and want to prevent people from seeing your site's outgoing email headers, or if you want to prevent people from using your site's contact form to send email spam.

Installation (Drupal 5)

To install:

  1. Make a directory sites/all/modules/contact_nocc/
  2. Download the two files contact_nocc.module and contact_nocc.info into that directory
  3. Enable the module on the Administer:Site building:Modules page (admin/build/modules)
There is no configuration UI. Enabling the contact_nocc module automatically enables the functionality.

Installation (Drupal 6)

To install:

  1. Make sure you are in your main Drupal directory (running ls should show index.php), and run these three commands:

    mkdir -p sites/all/modules

    cd sites/all/modules

    wget -O - http://wtanaka.com/system/files/contact_nocc-6.x-1.0.tar.gz | gzip -d -c | tar xvf -

  2. Enable the module on the Administer:Site building:Modules page (admin/build/modules)
There is no configuration UI. Enabling the contact_nocc module automatically enables the functionality.

Uninstallation

To uninstall:
  1. Disable the module on the Administer:Site building:Modules page (admin/build/modules)
  2. Delete the sites/all/modules/contact_nocc/ directory
Disabling the contact_nocc module will restore the contact module back to its original functionality.
AttachmentSize
contact_nocc.module536 bytes
contact_nocc.info171 bytes
contact_nocc-6.x-1.0.tar.gz522 bytes

how does it work, i don't

how does it work, i don't see any install file and its not added to the mod list, where we suppose to add it ?

No .install file is

No .install file is necessary, and it should show up in the module list as soon as you put both the .module file and the .info file in sites/all/modules/contact_nocc/

Updated comment_nocc module for Drupal 6

I am a complete Drupal noob and would greatly appreciate if you could update your comment_nocc module for Drupal 6.

This worked perfectly on the

This worked perfectly on the site I was building - I'm very happy as I thought I might have to hack the core files (which is obviously not recommended).

Thank you much for posting your solution!

Hi Wesley, firstly great

Hi Wesley, firstly great module. I was just wondering if you were planning to upgrade this to support Drupal 7?

Syndicate content
by Wesley Tanaka