Install

Works with Drupal: 7.x

Using dev releases is not recommended, except for testing.

Using Composer to manage Drupal site dependencies

Downloads

Download contact_attach-7.x-1.x-dev.tar.gztar.gz 22.53 KB
MD5: f17720f1c4e7e74ed4bd64b9914cc405
SHA-1: 9889f4e1c3eafba4b161d840172d5dcbab5c17d4
SHA-256: 1cc219faab1170e71959923044fc048566e4d1117c7284ecd6a5e16510152db2
Download contact_attach-7.x-1.x-dev.zipzip 25.93 KB
MD5: c7d7cbdcba209c2161f6e7f2e0f43c69
SHA-1: 6ecfdc47b9c9eb18a3f775f66d6e43a1c8af04ad
SHA-256: 6353c9a1b04e61a13edcabd182ee1bf5a94275696262c6e9f538b5fb887206b3

Release notes

The Contact Attach module has been ported to Drupal 7. It is now possible to define settings for attachments on a per-role basis and for each contact form type (site-wide contact form and user contact forms). A lot of clean-up, bug fixes and rewriting has been done.

Changes since the 6.x version (newest first):

#1864518: Implementation of hook_mail_alter() calls attachment process function when user does not have access to attach files
#1853904: Delete file from temp dir after file has been embedded in mail
#1851252: Add toggle to use simple file field when file module is enabled
#1850288: Fix incorrect variable name in settings form test
#1850012: Clean up translatable strings and fix permission name bug
#1675920: Use managed file field when file module is enabled
#1590174: Display allowed extensions and file size limit for attachments on contact forms
#1551212: Only put file URI in filename attribute of attachment header if using SMTP module
#1545954: Clean up user-facing text
#1545566: Translate contact form names stored in variables
#1545538: Straggling <a> closing tag in the settings form help text
#1542656: Add tests for the module functionality on contact forms
#1542490: Use single quotes where reasonable
#1541292: Remove unnecessary unset() of $form['#submit']
#901710: More than one success/fail message displayed after submitting contact forms
#1541220: Form validation handler throws exception for user 1 using contact form without having explicit permissions
#1540768: Move administration functions to separate file
#671624: Attachment field label displays number when there is only one attachment
#1538784: Remove unnecessary declaration of form enctype="multipart/form-data" attribute
#1538722: Put code for getting maximum file size, attachments, and allowed extensions into their own functions
#1536170: Save role IDs as value so that key lookup is not necessary in foreach loops
#1536124: Remove unused $user global declaration in contact form validation handler
#1536076: Put code for getting user's valid roles into its own function
#1533490: Default values that are submitted on the settings form should be tiny/empty
#1532498: Default values should not add to/override specifically set values
#1532468: Exception thrown on contact form when no contact_attach_numbers_* variable present
#1532294: Add tests for the module settings form
#1532134: Use strict comparison for performance, clarity and security
#1530456: Do not assume that there is an administrator role defined in user_admin_role
#1526296: Authenticated user role should not override settings of more specific roles
#1526214: All user roles are considered as roles permitted to attach files if one role has access
#1522176: Settings page does not list roles that inherit permissions from the authenticated user role
#1521472: Store separate settings for each type of contact form
#1521232: Store each setting in the variable table as an array to avoid an excess of variables
#1520172: Store per-role settings for number of attachments
#1520080: Ensure that the user does not set the number of attachments to 0
#1520050: Unset settings form value that is used to transfer information to the validation step
#1520034: Administrator role not listed on contact attach settings page if permission not set explicitly
#1520016: Rewrite attachment validator to avoid validating every file once for every submitter role
#1518356: Remove unneeded switch statement in contact_attach_form_alter()
#1518340: Contact form sends mail without attachment when the file does not validate
#1518326: Replace for loops that use count() with foreach loops for performance and clarity
#1518282: Remove calls to variable_get() that are not needed; use $_FILES array instead
#1518170: Rename user contact forms permission
#1518150: Rewrite the help text on the settings page to be more helpful
#1518138: Add constants for variable defaults
#1518096: Remove user file quota validation
#1516592: Remove _contact_attach_upload_validate(), moving its content to the common contact form validator
#1512306: array_merge() in contact_attach_admin_settings() tries to merge unknown array
#1511690: Merge form validation handlers for contact_site_form and contact_personal_form
#1511678: Replace contact_attach_mail() with contact_attach_mail_alter()
#1511644: Remove dead code that tries to support og_contact
#1511464: $file->filepath is called $file->uri in Drupal 7
#1511342: Clean up the .module file
#1511322: Port _contact_attach_add_attachment() to Drupal 7
#1511300: Port _contact_attach_process_attachments() to Drupal 7
#1510894: Port implementation of mail hook to Drupal 7
#1510796: Port overridden form submission handler for og_contact_mail_page_submit to Drupal 7
#1510768: Wrong message displayed to user after failing to send an e-mail from site-wide contact form
#1510764: Port overridden form submission handler for contact_personal_form to Drupal 7
#1510750: Port overridden form submission handler for contact_site_form to Drupal 7
#1510672: Add validation for the value of contact_attach_number submitted from the Contact Attach settings form
#1510646: Impement a way to set the per role attachment validation variables in a UI
#1510170: Port the file validator function _contact_attach_upload_validate() to Drupal 7
#1510120: Port form validation handlers to Drupal 7
#1510062: Port implementation of form alter hook to Drupal 7
#1509858: Clean up form constructor for the settings form
#1509814: Port menu hook implementation to Drupal 7
#1508886: Port permission hook implementation to Drupal 7
#1508828: Clean up hook_help implementation
#1508804: Port .install file to Drupal 7
#1508684: Port .info file to Drupal 7

Created by: Tor Arne Thune
Created on: 19 Apr 2012 at 13:15 UTC
Last updated: 13 Dec 2012 at 00:51 UTC
New features
Bug fixes

Other releases