I've been trying to write a module that will require this module in order to assign points to a category based on the node type. So far, everything works good, but when a comment is deleted, the nid is not preserved in $params, so by the time hook_userpoints fires and is caught by my module, there is no longer a reference to the node so the node type is indeterminant.

In the mean time, I'm using a module just containing hooks so I get the information I need and am having my other modules require that.

Thank you,

James

Comments

zazinteractive’s picture

Could you share this module? I could help you find a fix for your problem

wastrilith2k’s picture

I've got the code archived at the moment as I decided to just use Rules to handle everything. That also lets me integrate with Workflow so I can only assign points when a piece of content is published. I'm still testing it though.

James