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.

Comments

squaretone’s picture

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));
}
quicksketch’s picture

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!

quicksketch’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)