More info on actions_do

nlowhor - December 15, 2007 - 18:12
Project:Actions
Version:5.x-2.x-dev
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

I'm using actions_do() to fire an action, but I need a way to get the current node and user info through the action. I see that actions_do() allows for some other parameters, but I haven't found how to send through exactly what I need. I assume the $context is what I'm looking for. Can anyone provide a little more info on using this function?

Thanks!

#1

jvandyk - December 17, 2007 - 15:45

Right. In the HEAD version of actions for 5.x, $context is available to actions as the second parameter. So you can stash stuff in there if you want.

#2

nath - August 26, 2008 - 14:39

So this is fixed?

 
 

Drupal is a registered trademark of Dries Buytaert.