Update theming instructions in theming.txt
squaretone - July 21, 2006 - 15:36
| Project: | Webform |
| Version: | 4.7.x-1.x-dev |
| Component: | Documentation |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Current THEMING.txt documentation instructs you to theme emails via:
function phptemplate_webform_mail_message_nodeIdHere ($formData) {
return _phptemplate_callback('webform_form_nodeIdHere', array('formData' => $formData));
}should be
function phptemplate_webform_create_mailmessage_nodeIdHere ($formData) {
return _phptemplate_callback('webform_form_nodeIdHere', array('formData' => $formData));
}This one stumped me for a bit.
thanks.

#1
the module code implies this would be the better way
function phptemplate_webform_create_mailmessage_nodeIdHere ($formData) {return _phptemplate_callback('webform_create_mailmessage_nodeIdHere', array('formData' => $formData));
}
#2
Thanks for the correction. I updated the theming instructions which, by the way, have been changed in the CVS HEAD version of webform. The variable $formData now contains several arrays of information, rather than the single array of values. This became necessary with the advent of the fieldset component and nested fields. You can continue to use your previous themes by using the sub-array $formData['submitted'] since it is identical to the previous value of $formData. Happy theming!
#3
#4