As found out in #1760270: Comment translation broken?, there's a notice for form elements with a #type, which is a perfectly valid thing to do.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Berdir’s picture

And here's the patch.

Not sure if #access should be set in that case or not, here's a patch for both approaches.

plach’s picture

Status: Needs review » Needs work

I'm afraid we need to recurse into typeless elements.

plach’s picture

plach’s picture

Status: Needs work » Closed (duplicate)