You are here

function _webform_render_hidden in Webform 5

Same name and namespace in other branches
  1. 5.2 components/hidden.inc \_webform_render_hidden()
  2. 6.3 components/hidden.inc \_webform_render_hidden()
  3. 6.2 components/hidden.inc \_webform_render_hidden()
  4. 7.4 components/hidden.inc \_webform_render_hidden()
  5. 7.3 components/hidden.inc \_webform_render_hidden()

Build a form item array containing all the properties of this component.

Parameters

$component: An array of information describing the component, directly correlating to the webform_component database schema.

Return value

An array of a form item to be displayed on the client-side webform.

1 call to _webform_render_hidden()
_webform_submission_display_hidden in components/hidden.inc
Display the result of a textfield submission. The output of this function will be displayed under the "results" tab then "submissions".

File

components/hidden.inc, line 38

Code

function _webform_render_hidden($component) {
  $form_item = array(
    '#type' => 'hidden',
    '#value' => _webform_filtervalues($component['value']),
    '#weight' => $component['weight'],
  );
  return $form_item;
}