Install
Works with Drupal: 7.xUsing Composer to manage Drupal site dependencies
Downloads
Download tar.gz
58.35 KB
MD5: e5e12125ecb91ba9483033c6fae40976
SHA-1: 36c916aa58895e9d796932a16800b716c672ab1b
SHA-256: b78f761119961c2fcd081e4ee9a4b331e19bea8ed4ab26648ae3f8587f330325
Download zip
76.9 KB
MD5: 9db8f2f3957b4eb451f81062b35b340d
SHA-1: 3703aacd617d1129e59979ecf62117cc4509c038
SHA-256: 55fcad81bdd0dc0dbed4bc61746e6295cf1383600a4a98a57a8c0834d77294e7
Release notes
Summary
This release contains two major changes:
- It extends the API to make the use of plugins possible. There are now plugins for form types, the element types and properties.
- Saving changed properties is now the responsibility of the form (ie. webform now stores the new values in the component and then re-renders the component instead of vice-versa). This removes one of the major headaches when adding support for new element types. See #2313951: Webform Conditional conflict?, #2463259: wrapper CSS class not saving, #2144253: Custom properties being reset when loaded for edit and perhaps many more.
All API changes should be backwards compatible. Existing integrations should work just fine. For new integrations it is recommended to use the new plugin system. The old plugin-system is deprecated and will be removed in 2.0.
Full list of changes since 7.x-1.7
- Use webform_components_default() to load defaults. Fixes #2313951: Webform Conditional conflict?. [view commit]
- Issue #2464957: Refactor form types and properties as classes. [view commit]
- [webform] Make $element['webform_component'] the authoritative storage for properties. (fixes #2463259: wrapper CSS class not saving and #2144253: Custom properties being reset when loaded for edit) [view commit]
- Fixup default labels for selects. [view commit]
- Fixup/simplify editing options of select fields. [view commit]
- Rename FormType -> Form. [view commit]
- [webform] Fixup: store component weight. [view commit]
- Remove API for directly accessing info-arrays. [view commit]
- Introduce classes for form elements. [view commit]
- [webform] Properly handle array default_values for live-updates. [view commit]
- Some remaining FormType -> Form renames. [view commit]