You are here

function _webform_render_summary in Webform Bonus Pack 6.3

Same name and namespace in other branches
  1. 7.3 components/summary.inc \_webform_render_summary()

Implementation of _webform_render_component().

File

components/summary.inc, line 51
Webform module summary component.

Code

function _webform_render_summary($component) {
  $element = array(
    '#type' => 'item',
    '#weight' => $component['weight'],
    '#title' => $component['extra']['title_display'] == 'none' ? '' : $component['name'],
    '#value' => '',
    '#nid' => $component['nid'],
    // Pass nid
    '#cid' => $component['cid'],
    // Pass cid
    '#after_build' => array(
      '_set_summary',
    ),
  );
  return $element;
}