Closed (fixed)
Project:
User Points
Version:
6.x-1.x-dev
Component:
Code: userpoints_rules/userpoints_workflow_ng
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 Jan 2009 at 15:42 UTC
Updated:
31 Aug 2009 at 15:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
jcmarco commentedUpgrade patch
Comment #2
jredding commentedvery, very cool. Rules integration adds a ton of power to userpoints.
Comment #3
jredding commentedI haven't tested the code but I gave it an eyeballing. I don't see anything egregious and the code looks clean (for what its worth).
I have one question.
I noticed the use of $user in the function, for example
I know Drupal bounces around on this but isn't $user typically used to refer to the currently logged in user and $account used for user objects passed between functions?
I actually don't think this is a big deal but it popped out to me
Comment #4
kbahey commentedI will commit this, and change the $user as well.
Comment #5
kbahey commentedCommitted. Thank you.
All instances of $user changed to $account per jredding review.
Comment #7
socialnicheguru commentedI am a noob in regards to rules.
How would I configure the following:
Whenever $user->points < 100, then print a message to the screen or have a block appear.
I want this to happen regardless of the event. So in this case, the event is the condition.
is there a way to make this happen?
Ultimately I would like an item placed in one's shopping cart which I think I can do with cart links.