Active
Project:
User points Nodes and Comments
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Apr 2011 at 18:31 UTC
Updated:
9 Jun 2011 at 20:46 UTC
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
Comment #1
zazinteractive commentedCould you share this module? I could help you find a fix for your problem
Comment #2
wastrilith2k commentedI'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