[documentation] [Documentation feature] form ID should be a valid PHP label

Heine drupal-docs at drupal.org
Wed Jun 21 01:06:13 UTC 2006


Issue status update for 
http://drupal.org/node/70027
Post a follow up: 
http://drupal.org/project/comments/add/70027

 Project:      Documentation
 Version:      <none>
 Component:    Documentation in CVS
 Category:     feature requests
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  Heine
 Updated by:   Heine
 Status:       active
 Attachment:   http://drupal.org/files/issues/fapi_valid_formid.txt (2.19 KB)

Attached patch adds the following line about the form id to the Forms
API quickstart guide.


"
Because the form ID can be used in functions, you have to make sure it
is a valid PHP label. A valid form ID starts with a letter or
underscore, followed by any number of letters, numbers, or underscores.


"
Though form IDs do not have to be valid PHP labels per se (see eg CCK),
invalid form IDs break a good deal of FAPI.




Heine



More information about the documentation mailing list