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

AttachmentSize
form_error.patch688 bytes

#1

douggreen - August 30, 2008 - 22:00

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

stella - September 2, 2008 - 11:46
Status:needs review» reviewed & tested by the community

Tested and works.

 
 

Drupal is a registered trademark of Dries Buytaert.