There are a couple errors in the Forms API Reference when it comes to elements with #type == 'button' and what the #submit key does. In neither case do they work as advertised. I'd love to see the Forms API changed to conform to the guide, but if that's not going to happen we at least ought to update the documentation.

Information with links to the reference discrepancies can be found in this issue:
http://drupal.org/node/110559

Comments

heine’s picture

Project: Drupal.org site moderators » Documentation
Component: Content moderation » Documentation in CVS
Tresler’s picture

FOrgive me if I'm not following correctly here.

Is this a duplication of this: http://drupal.org/node/112398

Where FAPI #submit nees to be detailed as not a boolean? If not, please clarify how so if it isn't too much trouble. Thanks.

Tresler’s picture

Status: Active » Closed (fixed)

issue mentioned in original posting is fixed, ergo documentation should now be correct.