@ -2686,6 +2686,7 @@ function icm_model_add_ingestFormElement(&$form_state,$params=null)
'copyright'=>t('Creative-Commons Copyright Chooser'),
'hidden'=>t('Hidden'),
'file'=>t('File Upload (browse)'),
'markup'=>t('HTML Markup (no field)'),
),
'#description'=> t('The type of form element to display.')
);
@ -2851,6 +2852,7 @@ function icm_model_edit_ingestFormElement(&$form_state,$params=null)
'#description'=> t('The type of form element to display. <br/><b>Warning:</b> Changing the type from "Select" or "Radio" to anything else will cause any authoritative list to be permanently removed.')
@ -312,12 +312,17 @@ class FormBuilder {
foreach ($elements as $element) {
if ($element['type'] == 'markup') {
$el = array('#value'=> $element['description']);
} else {
$el = array(
'#title' => $element['label'],
'#required' => ($element['required'] ? 1 : 0),
'#description' => $element['description'],
'#type' => $element['type']
}
$name = explode('][', $element['name']);
$elLocation = &$form['indicator2'];