ID, $fieldName, true ); $label = $field['label']; $description =$field['description']; switch($type){ case 'textbox': $fieldHTML = ''; break; case 'textarea': $fieldHTML = ''; break; case 'checkbox': $extraText = $field['extraText'] ? $field['extraText'] : ''; $fieldHTML = ' '.$extraText.''; break; case 'selectCustom': $customList = $field['options'] ? $field['options'] : array(0=>'empty'); //lines into array $customList = explode("\n",$customList); $fieldHTML = ''; break; } ?>