You are here

function _webform_node_element_prefix in Webform Node Element 6

Generate a prefix for the node field.

This can't be done using a theme wrapper on Drupal 6.x, so sadly this needs two helper functions. The actual rendered node content is added in the otherfucntion, _webform_node_element_suffix().

1 call to _webform_node_element_prefix()
_webform_render_node in components/node.inc
Implements _webform_render_component().

File

components/node.inc, line 254
Webform module node component.

Code

function _webform_node_element_prefix($element) {
  $output = '<div class="form-item webform-component webform-component-node" id="webform-component-' . $element['form_key'] . '">' . "\n";
  $output .= isset($element['#field_prefix']) ? '<span class="field-prefix">' . _webform_filter_xss($element['#field_prefix']) . '</span> ' : '';
  return $output;
}