diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-11-22 21:31:15 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-11-22 21:31:15 +0000 |
commit | a3f84c7782c6bc858e9fa01c16a39361faef15c0 (patch) | |
tree | 6d151c164701dc263be6ff74011f3713199b131a /modules/node | |
parent | f532273a130bfcb72535890d3e15e16698e749be (diff) | |
download | brdo-a3f84c7782c6bc858e9fa01c16a39361faef15c0.tar.gz brdo-a3f84c7782c6bc858e9fa01c16a39361faef15c0.tar.bz2 |
- 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
Diffstat (limited to 'modules/node')
0 files changed, 0 insertions, 0 deletions