function _webform_display_layout_box in Webform Layout 7
Same name and namespace in other branches
- 6 layout_box.inc \_webform_display_layout_box()
- 7.2 layout_box.inc \_webform_display_layout_box()
Implements _webform_display_component().
File
- ./
layout_box.inc, line 78 - 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['#webform_component'] = $component;
$element['#format'] = $format;
return $element;
}