Hi,

I am trying to theme the webform output email that is sent. Presently it displays the standard: IP Address, Submitted date, and form fields.

I want to modify how this information is displayed, for easier reading. I tried to add the theme information to template.php

/* Webform Template Submission */
function phptemplate_webform_create_mail_message_2($form_data, $node, $sid, $cid) {
return _phptemplate_callback('webform-mail-2', array('form_data' => $form_data, 'node' => $node, 'sid' => $sid, 'cid' => $cid));
}

And I created a template file which I uploaded to my theme directory webform-mail-2.tpl.php but nothing seems to work. I have drupal 5.x setup. I need to get this working asap. Thank you so much.

Comments

quicksketch’s picture

Hi Kristy, sorry this was my fault for not updating the THEMING.txt file. I've changed the name of the theme function from "webform_create_mail_message" to just "webform_mail_message". If you change the function name from phptemplate_webform_create_mail_message_2 to phptemplate_webform_mail_message_2 it should work fine. I've updated the THEMING.txt file in CVS so other people won't run into the same problem.

quicksketch’s picture

Status: Active » Closed (fixed)
quinti’s picture

If you are using zen themes, put the tpl in zen folder, non in subfolder,