Closed (won't fix)
Project:
User Points
Version:
5.x-2.14
Component:
Code: userpoints API
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
28 Sep 2007 at 05:18 UTC
Updated:
25 Jan 2011 at 10:07 UTC
would be nice if there any checkbox method to manage approve/decline userpoint...I beliave it will make faster/easier moderation.
Comments
Comment #1
jredding commentedThis is a good idea.. I'll evaluate if this is easily done and if so I'll implement it. Otherwise a patch is always more than welcome.
Comment #2
erwinova commentedthis method same as on node.module file... you can explore node.module as model. I'm trying but still stuck right now.
Comment #3
jredding commentedI took a look at the code and it wouldn't be difficult to implement but it is rather time-consuming and time is something I don't have a lot of these days. I'm sorry but I'm not going to be able to implement this anytime soon. However you could definitely roll a patch for this and I'm sure Kbahey would love to integrate it!
To get you started the function that you want to look at is userpoints_admin_manage()
This function is currently creating a table using theme('table', $header, $rows). What you'll want to do is to create a FORM with that table embedded in it. This way you can add the checkboxes next to the row and a submit button at the bottom. You'll also need to add a _validate function as well as a _submit function for your form.
If you have questions feel free to ask. The forms API reference on api.drupal.org is pretty good and, like you said, node.module is a perfect reference. I implemented something very similar in my PDF-IDCard module so I know the routine but I just don't have the time.
You can do it. Roll a patch! We have faith in you!
Comment #4
jredding commentedComment #5
jredding commentedwhoops. wrong comment.
Comment #6
berdirSorry for spamming the participants in this issue. Due to the release of Drupal 7 and the lack of time from the maintainers, I'm closing all remaining 5.x issues for Userpoints.
Feel free to re-open this issue or create a new one for 6.x or even better 7.x if this bug is still open or feature is missing for these versions.