'textarea',
'#title' => t("Value"),
'#default_value' => $currfield['default'],
'#description' => t('Markup allows you to enter custom HTML or PHP logic into your form.') .'
'. webform_help('webform/helptext#variables'),
'#weight' => -1,
);
// Add the filter form.
$edit_fields['extra']['filter'] = filter_form($currfield['extra']['format'], 0, array('field', 'extra', 'format'));
// No description for markup.
$edit_fields['extra']['description'] = array();
return $edit_fields;
}
/**
* Build a form item array containing all the properties of this component.
* @param $component
* An array of information describing the component, directly correlating to
* the webform_component database schema.
* @return
* An array of a form item to be displayed on the client-side webform.
*/
function _webform_render_markup($component) {
// We don't want users to be able to execute filters outside of their permissions on preview.
if ($_POST['op'] == t('Preview')) {
$check_filter = true;
}
else {
$check_filter = false;
}
$form_item = array(
'#type' => 'markup',
'#weight' => $component['weight'],
'#value' => _webform_filtervalues(check_markup($component['value'], $component['extra']['format'], $check_filter), FALSE),
'#prefix' => '