Closed (fixed)
Project:
Webform
Version:
6.x-3.x-dev
Component:
Documentation
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
5 May 2011 at 16:16 UTC
Updated:
12 Apr 2014 at 02:44 UTC
Jump to comment: Most recent
Trying to find some Best Practices that should be adopted to make modules webform 3.x module compliant.
Initial post taken from Salesforce Webform http://drupal.org/node/1146084
Comments
Comment #1
chriscalip commentedWith the introduction of the feature "Web Enabled Content Types" see admin/settings/webform in the Webform 3.x module one practice that we module developers have been doing is rendered obsolete.
a.) the practice of form id based checks are not effective anymore.
b. ) The old way of handling editing of "CRUD" webform nodes are also obsolete.
Comment #2
chriscalip commentedMake use of Webform 3.x hooks available see /webform/webform_hooks.php
a. With the availability of webform hooks our form alter's to add submission handlers are no longer necessary
What's the advantage? We got the $sid already available... well the hook_webform_submission_insert does.
Comment #3
chriscalip commentedComment #4
quicksketchClosing, as this seems to be mostly informational for users upgrading to Webform 3.x(?) With 4.x out shortly, hopefully by now all modules have migrated fully to 3.x.