This constant is used in various places, as it was in D6. However, it is never defined.
In D6, it used to be near the top of filter.module.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 633974-filter-format-default.patch | 1.46 KB | willmoy |
| #4 | signature_formats_6051.patch | 1.57 KB | fgm |
Comments
Comment #1
fgmActually, that constant appears to have been removed with the new text formats in UNSTABLE-10, ad per http://drupal.org/update/modules/6/7#default-text-formats
Its use should therefore be replaced, likely by filter_fallback_format() or filter_default_format() depending on the remaining use cases.
Comment #2
casey commentedIn current HEAD FILTER_FORMAT_DEFAULT is only being used in system_update_6051().
Comment #3
fgmFWIW, that's version 1.422 of system.install, and the comment in hook_update_6051() needs to be changed too. There were quite a bunch removed in just three days...
Comment #4
fgmSuggested patch.
Comment #6
sunComment #7
dries commentedThis no longer applies for me?
Comment #8
dries commentedComment #9
willmoy commentedStraight re-roll, see if we can get this off the list.
Comment #10
sunStill RTBC if bot passes.
Comment #12
David_Rothstein commentedI don't think this is right - this won't be consistent with what the D6 update did. Rather, it seems like
variable_get('filter_default_format')should be used here too.Note, by the way, that this is all also being discussed and handled at #520760: SA-CORE-2009-007 user signature format as well. Basically, as far as I can tell, the reason this bug exists at all is that the post-release D6 update functions were mass-copied to D7 without changing them. However, this one was for a security update, so it will need to be taken care of properly in the other issue anyway. It may make sense to close this as a duplicate and merge the work here with that patch.
Comment #13
sunAgreed.