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.
Adding a CTools dependency for the UI and exportables would reduce the amount of code you have to maintain. Working on a patch now.
Comment | File | Size | Author |
---|---|---|---|
#11 | wordfilter-exportability-1073026-11.patch | 31.79 KB | q0rban |
#9 | wordfilter-exportables-1073026-9.patch | 29.68 KB | q0rban |
#4 | wordfilter-1073026-4.patch | 16.59 KB | q0rban |
#3 | wordfilter-1073026-3.patch | 16.27 KB | q0rban |
#2 | wordfilter-1073026-2.patch | 16.4 KB | q0rban |
Comments
Comment #1
q0rban CreditAttribution: q0rban commentedPatch attached. I'm not sure how helpful this is though, as I'm thinking people would probably rather export a whole language, not individual words. Not sure the best way to implement that yet though.
Comment #2
q0rban CreditAttribution: q0rban commentedComment #3
q0rban CreditAttribution: q0rban commentedDarn, accidentally uploaded the same file. ;)
Comment #4
q0rban CreditAttribution: q0rban commentedAdded support for disabled items.
Comment #5
csevb10 CreditAttribution: csevb10 commentedOk. I admit that I made your life (or mine) a little more difficult, but now that I've separated out admin functionality into a separate file, getting your patch to apply to the latest code might be harder than just writing it from scratch. :-/ If you can re-roll a patch based on the re-work of the code that I did, I would love to add exportable functionality.
Regardless, this functionality is definitely on my list of features to develop moving forward, so if you don't have time, I will get to this as soon as time allows.
Comment #6
q0rban CreditAttribution: q0rban commentedHmm, I was working off of the latest in the 7 branch when I made my patch. Is there a separate branch I should be working from?
Comment #7
csevb10 CreditAttribution: csevb10 commentedYou did everything correctly, I just happened to be making changes at the exact same time to a lot of the same code, so pulling all of your changes into what I did became very difficult. Does that make sense? If you can roll off the current d7 branch, it'll just make life easier, otherwise, I'll get to this myself as soon as I can.
Comment #8
q0rban CreditAttribution: q0rban commentedOk, I'm going to try to re-roll this patch, and also make it exportable by language. This will mean I'll have to increase the language support a bit.
Comment #9
q0rban CreditAttribution: q0rban commentedHere's a new patch, made with git format-patch. The language stuff is in a separate commit, so if you don't want that to be included with this work, you can separate it out, and we can create a new issue for that (or post to the existing one for 6: #265565: Multilanguage support (at least for 6.x)).
To apply this patch:
Comment #10
q0rban CreditAttribution: q0rban commentedActually, the language portion is going to need work, as caching needs to be updated to be on a per language level.
Comment #11
q0rban CreditAttribution: q0rban commentedUpdated patch to fix caching as mentioned in #10. It will be harder to separate out the language stuff from this patch, so let me know if you need a hand with that.
Comment #12
adamtong CreditAttribution: adamtong commentedhow to use this? also, the bulk add is not working.
there is error:
Fatal error: Call to undefined function _wordfilter_language_options() in /mydrupal/sites/all/modules/wordfilter/wordfilter.admin.inc on line 62
Comment #13
mxh