Download & Extend

Skip positive $form_state warning when used within a form_error()

Project:Coder
Version:6.x-1.x-dev
Component:Review/Rules
Category:bug report
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community

Issue Summary

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().

AttachmentSize
form_error.patch688 bytes

Comments

#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.

AttachmentSize
form_error.patch 690 bytes

#2

Status:needs review» reviewed & tested by the community

Tested and works.