would be nice if there any checkbox method to manage approve/decline userpoint...I beliave it will make faster/easier moderation.

Comments

jredding’s picture

Assigned: Unassigned » jredding

This 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.

erwinova’s picture

this method same as on node.module file... you can explore node.module as model. I'm trying but still stuck right now.

jredding’s picture

I 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!

jredding’s picture

Status: Active » Closed (won't fix)
jredding’s picture

Status: Closed (won't fix) » Active

whoops. wrong comment.

berdir’s picture

Component: Code: userpoints » Code: userpoints API
Status: Active » Closed (won't fix)

Sorry 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.