You are here

function _webform_node_element_suffix in Webform Node Element 6

Generate a suffix 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 here.

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

File

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

Code

function _webform_node_element_suffix($element) {
  $output = '';

  // Because we're a hidden field, the rendered node content won't show up
  // on the page. However, #field_value contains a copy. Prepend that on to
  // the suffix output here.
  $output .= isset($element['#field_value']) ? '<span class="field-value">' . $element['#field_value'] . '</span> ' : '';
  $output .= isset($element['#field_suffix']) ? '<span class="field-suffix">' . _webform_filter_xss($element['#field_suffix']) . '</span>' : '';
  $output .= "</div>\n";
  return $output;
}