Closed (fixed)
Project:
Form Builder
Version:
7.x-1.x-dev
Component:
Webform Itegration
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2012 at 19:46 UTC
Updated:
29 Jan 2012 at 21:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
quicksketchThis patch adds support for the number component and applies to both D6 and D7. I could have copied the existing approach that we have for components to support the Number component as well, but all that copy/pasting was becoming unsustainable. Considering the number component had a record 8 custom properties, that meant adding 8 new functions that did nothing but call a single function with different parameters.
So I put in some effort to make it so that components could be supported in a more generic fashion. Instead of copy/pasting huge chunks of code for every component, this patch provides a new, alternative approach for components that allows them to merely set a "form_builder_map" to describe how FormAPI properties are mapped to the existing Webform configuration forms. After this patch is committed, we should be able to significantly reduce our code in form_builder_webform.components.inc by utilizing the new format.
Comment #2
quicksketchCommitted to both branches.