authorcontact with selectable content - form size width - 6 extra field - 2 extra checkbox

elarifr - October 17, 2009 - 19:50
Project:Author Contact
Version:6.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:JustJamesAus
Status:needs review
Description

After playing a little bit with this module i have finally added some feature.
- block configuration allow to set with checkboxes the content where you want to display the form
- added 6 admin config text field. 3 required. 3 not.
- added 2 checkbox. 1 should be required but does not work.
- All field are not displayed if you set the field label to < none >
- field label are (should be ) translated

don't know if need to be ported to the original project or made it a sub project ?

install authorcontact and replace the original authorcontact.module by the attached one (rename it remove .txt)

attached a picture of the admin (no checkbox)

could see form at http://immo-g-meyer.fr/content/maison-de-demo

i need some help to review the code and correct some feature.

AttachmentSize
authorcontact.module.txt17.88 KB
authorcontact_extra_field.jpg69.56 KB

#1

JustJamesAus - October 18, 2009 - 10:06
Assigned to:Anonymous» JustJamesAus

thanks for your contributions elarifr! I'll have a look at this code as well, no problems.

#2

JustJamesAus - October 30, 2009 - 03:36

Some of these have been added from the code in issue #492500: Restrict the contact form only on desired content type, set width and height inside block

I will review the other changes and may include in dev.

I like the idea of optional extra fields, however I don't want this module to get too bloated. I'm not reinventing webform ...

 
 

Drupal is a registered trademark of Dries Buytaert.