Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: dmitrig01 commentedform_error and form_set_error are used in validate functions. try grepping for that...
Comment #2
dmitrig01 CreditAttribution: dmitrig01 commentedComment #3
bdragon CreditAttribution: bdragon commentedI disagree.
This does look like an oversight.
Patch applies still (fuzzy as hell), I say RTBC.
Comment #4
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.
Comment #5
Gábor HojtsyComment #6
(not verified) CreditAttribution: commented