This module doesn't currently allow setting the category from which Userpoints should be deducted, yet it is possible to categorize them, and we do this on the site I'm working on.
I'm going to modify it to allow that, and I will then submit a patch.
It seems this module hasn't changed between its 1.0beta release and its 1.x-dev release, but the patch will be against dev since it's really supposed to be...
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | userpoints_contrib_nodelimit_896238_add_category_1.patch | 2.62 KB | wizonesolutions |
Comments
Comment #1
wizonesolutionsHere is the patch. I changed the function that checks for the variable, the one that updates it if the node type changes, and of course added an option to set it on the node forms. Also added a space to the end of the file.
Hope it gets reviewed!
Kevin
Comment #2
wizonesolutions...and for that to happen, I should set it to needs review...which I am now doing.
Comment #3
berdirI think the default value should user userpoints_get_default_tid().
Can you move these comments above the code? Also add a period at the end.
Powered by Dreditor.
Comment #4
wizonesolutionsWhoa, blast from the past! I'll try to do this though when I have a moment. Thank you for reviewing!
Comment #5
neovalis commentedexactly what I need!
Comment #6
neovalis commentedThis is working perfectly on my site. Thanks!