function _webform_edit_markup in Webform 6.3
Same name and namespace in other branches
- 5.2 components/markup.inc \_webform_edit_markup()
- 5 components/markup.inc \_webform_edit_markup()
- 6.2 components/markup.inc \_webform_edit_markup()
- 7.4 components/markup.inc \_webform_edit_markup()
- 7.3 components/markup.inc \_webform_edit_markup()
Implements _webform_edit_component().
File
- components/
markup.inc, line 28 - Webform module markup component.
Code
function _webform_edit_markup($component) {
$form = array();
$form['markup']['value'] = array(
'#type' => 'textarea',
'#title' => t('Value'),
'#default_value' => $component['value'],
'#description' => t('Markup allows you to enter custom HTML or PHP logic into your form.') . theme('webform_token_help'),
'#weight' => -1,
'#parents' => array(
'value',
),
);
// Add the filter form.
$form['markup']['format'] = filter_form($component['extra']['format'], 0, array(
'extra',
'format',
));
return $form;
}