I'm still working on form theming and I didn't get why a form (below) that I put in a module doesn't respect my #MAX issues and on the contrary if I put it in a funcion _page it does.
It seems the form overwrite all my directives.
<?php
function mud_form(&$node) {
// In order to be able to attach taxonomy terms to this node, we need
// to display the appropriate form elements.
if (function_exists('taxonomy_node_form')) {
$output .= implode('', taxonomy_node_form('mud', $node));
}
$form['numerazione'] = array(
'#tree' => TRUE,
'#type' => 'fieldset',
'#title' => t('Riferimenti della registrazione'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
//'#theme' => 'mud_form',
);
$form['numerazione']['car_num'] = array(
'#type' => 'textfield',
'#title' => t('carico/scarico:'),
'#required' => TRUE,
'#default_value' => $node->car_scar,
'#size' => 10,
'#maxlength' => 10,
'#inline' => TRUE
);
$form['numerazione']['car_num'] = array(
'#type' => 'textfield',
'#title' => t('N° registrazione'),
'#required' => TRUE,
'#default_value' => $node->car_num,
'#size' => 80,
'#maxlength' => 255,
'#inline' => TRUE
);
$form['numerazione']['formulario'] = array(
'#type' => 'textfield',
'#title' => t('N° formulario'),
'#size' => 80,
'#maxlength' => 255,