The theming.txt file included with the 4.7 release of webforms includes the following:

function phptemplate_webform_form_nodeIdHere ($form) {
  return _phptemplate_callback('webform_form_nodeIdHere', array('form' => $form));
}

and

- Create a new file in your theme's directory named
  "webform_component_nodeIdHere.tpl.php", once again replacing nodeIdHere
  with the node ID of the webform.

This did not work. When changed to:

function phptemplate_webform_form_nodeIdHere ($form) {
  return _phptemplate_callback('webform_component_nodeIdHere', array('form' => $form));

it works.

Alternatively it works if you changed the name of the theme file to webform_form_nodeIdHere.tpl.php. This may be more consistent?

Comments

quicksketch’s picture

Status: Active » Fixed

Thanks, looks like your 'alternative' way is the better way to go. I've fixed the line and commited. Thanks again!

Anonymous’s picture

Status: Fixed » Closed (fixed)