Commit Graph

322 Commits (38969b48ffd65d8bbf2b7c6722288c5341d7a4f6)

Author SHA1 Message Date
Dries Buytaert 63a78a617b - Patch #38038: hook_elements override instead of merge. 2005-11-28 16:37:11 +00:00
Dries Buytaert 50f148dab7 - Patch by chx: fixed form validation. 2005-11-23 16:21:12 +00:00
Dries Buytaert a3f84c7782 - Patch #38349 by hunmonk:
1. hook_form_validate_alter and hook_form_execute_alter have been eliminated. there usage was limiting and a bit confusing. now, only hook_form_alter remains
   2. replacing those hooks are the #validate and #execute attributes. these can be used either when building the form in a module, or via hook_form_alter. these attributes are built in array form, to allow for flexibility in how they are called. for example, a module could simply add an element to the #validate array via hook_form_alter if it wished to perform additional validation, or it could redeclare the entire #validate array if it wanted to override any existing validation
   3. attributes #validation_arguments and #execution_arguments have been added to allow args to be used w/ custom validation and execution functions. this are also declared in array format
   4. renamed #valid attribute to #validation. this doesn't cause any conflicts, and makes the naming convention more consistent
   5. renamed the existing #execute attribute associated w/ submit buttons to #submit
2005-11-22 21:31:15 +00:00
Dries Buytaert 1b388b4653 - Patch #35863 by chx: add link to forms API documentation 2005-11-21 18:14:23 +00:00
Dries Buytaert 03dda45573 - Patch #37752 by chx and Richard: renamed #post_process to #after_build. 2005-11-21 18:10:26 +00:00
Dries Buytaert 463ffe24ec - Patch #35724 by asimmonds: fixed handling of empty form fields. 2005-11-21 16:21:51 +00:00
Dries Buytaert 61ebf7b56b - Patch #37401 by webchick: fixed dependency of date selection form element on profile module. 2005-11-21 09:42:14 +00:00
Dries Buytaert f852db82dc - Patch #37915 by chx: improved readability of forms API. 2005-11-18 13:48:09 +00:00
Steven Wittens 36b62d969d #37078: forms api does not respect form_id when populating from ['edit'] or validating 2005-11-12 03:45:57 +00:00
Dries Buytaert 3768616a65 - Patch #36829 by hunmonk: current form_id_form_alter will cause name collisions. 2005-11-08 20:17:42 +00:00
Dries Buytaert d8425d23d2 - Patch #36606 by hunmonk: validation callback functions can't be overridden. 2005-11-08 20:02:24 +00:00
Dries Buytaert 7f0909ebfd - Patch #36407 by DriesK: make sure the private key is set. 2005-11-06 11:38:56 +00:00
Dries Buytaert cbcb85560a - Patch #35816 by chx: fixed problem with checkbox handling in the form API. 2005-11-03 15:42:31 +00:00
Dries Buytaert 5684831958 - Patch #35874 by asimmonds: added missing $Id$ tags. 2005-11-01 09:58:01 +00:00
Dries Buytaert f2185037be - Patch #35630 by adrian: fixed problem with how form trees are build. 2005-10-29 07:00:33 +00:00
Steven Wittens f2675cfd3a - Remove left over class from form api conversion 2005-10-26 01:25:01 +00:00
Steven Wittens fbaede7ec0 - #35264: More form api fixes 2005-10-26 01:24:09 +00:00
Steven Wittens 5f0e0f3649 - #33433: More form API fixes, and error handling improvements by Chx. 2005-10-13 10:02:31 +00:00
Dries Buytaert 75fe6b6c0a - Patch #33752 by chx, adrian, et al: another batch of form API changes/fixes. 2005-10-11 19:44:35 +00:00
Dries Buytaert fd96728f3c - Second batch of form API fixes by chx. 2005-10-09 10:39:15 +00:00
Dries Buytaert 7863be5e82 - Patch #33433 by chx: fixed a number of form API problems.
* Default form value
    * Leftover debug function in form.inc
    * PHP5 issue with comment date (I got this patch from another issue)
    * Validation error fix (was calling legacy form validate)
    * Lots o' warnings on comment preview
    * Filter tips plus argument (gremlins. I swear this was not there.)
    * Message to clear what's going on with system settings
    * Non-freetagging taxonomies fixed
2005-10-08 12:21:47 +00:00
Dries Buytaert 7e1527ee61 - Patch #29465: new form API by Adrian et al.
TODO:
  + The contact.module was broken; a new patch for contact.module is needed.
  + Documentation is needed.
  + The most important modules need to be updated ASAP.
2005-10-07 06:11:12 +00:00