There's code in here that should be displaying a message on ?q=contact when there are no categories defined, but it's not firing.
The attempt to get this message to print is coming from an '#error' FAPI property which appears to be completely useless, since it's only referenced here and in form.inc and nowhere else (grepped contrib as well).
So, this patch removes #error, changes the error message to a drupal_set_message, and adds a sentence (with link) to describe how to actually configure the form.
| Comment | File | Size | Author |
|---|---|---|---|
| contact-error.patch | 1.25 KB | webchick |
Comments
Comment #1
dmitrig01 commentedform_error and form_set_error are used in validate functions. try grepping for that...
Comment #2
dmitrig01 commentedComment #3
bdragon commentedI disagree.
This does look like an oversight.
Patch applies still (fuzzy as hell), I say RTBC.
Comment #4
dries commentedCommitted to CVS HEAD. Thanks.
Comment #5
gábor hojtsyComment #6
(not verified) commented