Hi,
I porpose to extend the rules action to add some userpoints to an account by some more attributes:
1. 'operation'
2. 'entity_type'
3. 'tid'
This enables to assign the points to a specific category or add some explaining operation to transaction.
As a proposal I added the necessary function revisions.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | userpoints_rules.rules_.inc_.02222010.diff | 2.44 KB | 1sp |
| proposal.txt | 2.08 KB | TS79 |
Comments
Comment #1
1sp commentedHi ,
I needed an extended "Grant points to the user" action, So I patched the userpoints_rules.rules.inc . I am attaching the patch to be reviewed by community. Using this patch you can control almost every attribute of userpoints transaction from the action form. Following new attributes are now supported:
The patch was created against latest dev version (22nd feb, 2010)
Cheers,
Sudhir
Comment #2
YK85 commentedSubscribing, awesome work!
Can we replace the current userpoints_rules.rules.inc file with this one?
Just wondering as the above isn't a patch file against the current that exists.
Thanks!
Comment #3
thekayra commentedAwesome. Subscribing. Will give it a try in the day.
Comment #4
1sp commentedthis patch is against today's dev release
Comment #5
kbahey commentedThank you so much for this patch.
I committed it.
It will be part of the tarball in about 12 hours.
Comment #6
YK85 commentedThanks for the great work!
Comment #7
BenK commentedAwesome! Looking forward to trying this out....
Comment #8
Anonymous (not verified) commentedHoly crap I was just about to sit down and figure this one out and you did the work for me! Sweet!
Comment #9
1sp commentedThanks!! You all motivated me.
Cheers,
Sudhir
Comment #10
gaurav_m commentedgood job!
Comment #12
__mark commentedDid anyone notice that the
Entity IDfield does not understand$node->nidobjects (or, as the field description puts it:$node->id)? It is accepting integers, so it's not completely broken.Does anyone have an idea on where to start on getting this patch to work? Would it be where the form is created:
userpoints_action_grant_points_form()?Comment #13
__mark commentedhowever, tokens work. problem solved.