You are here

function _webform_render_hidden in Webform 6.2

Same name and namespace in other branches
  1. 5.2 components/hidden.inc \_webform_render_hidden()
  2. 5 components/hidden.inc \_webform_render_hidden()
  3. 6.3 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 67
Webform module hidden component.

Code

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