function _webform_edit_layout_box in Webform Layout 6
Same name and namespace in other branches
- 7.2 layout_box.inc \_webform_edit_layout_box()
- 7 layout_box.inc \_webform_edit_layout_box()
Implements _webform_edit_component().
File
- ./
layout_box.inc, line 27 - Webform module layout_box component.
Code
function _webform_edit_layout_box($component) {
$form = array();
$form['display']['align'] = array(
'#type' => 'select',
'#title' => t('Alignment'),
'#default_value' => $component['extra']['align'],
'#description' => t('Controls how elements are arranged in this container. Choose "vertical" for no styling.'),
'#parents' => array(
'extra',
'align',
),
'#options' => array(
'vert' => t('Vertical'),
'horiz' => t('Horizontal'),
'equal' => t('Equal Width'),
),
);
$form['extra']['description'] = array();
// Hide the description box.
return $form;
}