I noticed on the 6.x version, that the addition in the content type administrative form (i.e. the "Flatcomments enabled: Flat list options will force replies to be to the main post." description) never shows up.
The reason is, that FAPI calls all hook_form_FORM_ID_alter() implementations prior to all the traditional hook_form_alter() implementations. Because of this, Flatcomments does it's alteration first (through hook_form_FORM_ID_alter() ), having no element to alter yet. Comment module only adds that fieldset later (through hook_form_alter() ), overwriting any previous changes.
So, we need to move our job into normal hook_form_alter(), in order to have it executed after Comment module adds the items in question. (Even changes to module weights in {system} table, however ugly they are, don't help us here, as the problem is with the order of two entirely different hooks, hardcoded in form.inc)
Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| flatcomments-description.patch | 1.07 KB | JirkaRybka |
Comments
Comment #1
dragonwize commented