[documentation] [Documentation feature] form ID should be a valid
PHP label
Heine
drupal-docs at drupal.org
Wed Jun 21 01:12:36 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
+Status: patch (code needs review)
status (though it's not exactly code)...
Heine
Previous comments:
------------------------------------------------------------------------
Wed, 21 Jun 2006 01:06:12 +0000 : Heine
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.
More information about the documentation
mailing list