I'm trying to create a custom action, the function is being called at the right time and everything.
however, i am having trouble parsing variables into my function.
Does the rules module automatically pass something? I need to get the $node and $user variables, and i haven't been able to work it out from the examples.
thanks in advance!
nick
Comments
Comment #1
mitchell commentedIf your variable is a node reference, you can use an action to load that variable. You can add multiple actions to a rule, and loading the variable would be done before using the variable.
Comment #2
nicksanta commentedthanks for the reply, it wasnt the exact answer i was looking for but it put me in the right spot to work it out.
apparantly you need to specify these things called 'arguments' lol.
this
to this
Comment #3
fagoComment #5
mitchell commentedUpdated component.