Skip positive $form_state warning when used within a form_error()
douggreen - August 30, 2008 - 21:44
| Project: | Coder |
| Version: | 6.x-1.x-dev |
| Component: | Review/Rules |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | reviewed & tested by the community |
Description
I think that we should skip the rule "use $form_state['values'] instead, which is where the values are stored after a submit" when the $form is used within a form_error().
| Attachment | Size |
|---|---|
| form_error.patch | 688 bytes |

#1
Actually, here's the patch... use #never instead of #not. BTW, I updated the documentation to include #never and added some emphasis on #not.
#2
Tested and works.