#182310 by chx: remove #DANGEROUS_SKIP_CHECK, as with the AHAH functionality...
#182310 by chx: remove #DANGEROUS_SKIP_CHECK, as with the AHAH functionality now we have safer methods to add things in the cached form for validation, so we don't need this security hole possibility kept anymore.
form_error($elements,t('!name cannot be longer than %max characters but is currently %length characters long.',array('!name'=>empty($elements['#title'])?$elements['#parents'][0]:$elements['#title'],'%max'=>$elements['#maxlength'],'%length'=>drupal_strlen($elements['#value']))));
}
// Add legal choice check if element has #options. Can be skipped, but