You are here

function _webform_display_layout_box in Webform Layout 7.2

Same name and namespace in other branches
  1. 6 layout_box.inc \_webform_display_layout_box()
  2. 7 layout_box.inc \_webform_display_layout_box()

Implements _webform_display_component().

File

./layout_box.inc, line 93
Webform module layout_box component.

Code

function _webform_display_layout_box($component, $value, $format = 'html') {
  if ($format == 'text') {
    $element = array(
      '#title' => '',
      '#weight' => $component['weight'],
      '#theme_wrappers' => array(),
    );
  }
  else {
    $element = _webform_render_layout_box($component, $value);
  }
  $element['#format'] = $format;
  return $element;
}