# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
81a82,91
>       $form['max_length'] = array(
>         '#type' => 'textfield',
>         '#title' => t('Maximum length'),
>         '#default_value' => is_numeric($field['max_length']) ? $field['max_length'] : 255,
>         '#required' => FALSE,
>        
>         // Use #element_validate to validate the settings.
>         '#element_validate' => array('_dyntextfield_length_validate'),
>         '#description' => t('The maximum length of the field in characters. Must be a number between 1 and 255'),
>       );
108,109c118,119
<         'type' => 'text',
< 		'size' => 'big',
---
>         'type' => 'varchar',
>         'length' => is_numeric($field['max_length']) ? $field['max_length'] : 255,
140a151,152
>   if ($value && !is_numeric($value)|| $value < 1 || $value > 255) {
>     form_set_error('max_length', t('"Max length" must be a number between 1 and 255.'));
141a154
> }
