I'm creating a string variable in my own custom action using the "new variables" procedure. This variable has the path of a page I want to redirect to. If I have PHP module enabled, I can then use the Path Redirect action along with echo $my_variable to redirect to the correct page. That works.

But, it seems like I should be able to load this variable without needing PHP. I notice that if I use the Load Node by ID action, it creates a variable that can then be loaded by actions such as Set Content Title without using PHP. (In a dropdown box in the Arguments fieldgroup) I've looked through the code for those actions, but I can't figure how Load Node by ID or Set Content Title are different from my module. How is it possible to have a variable that is accessible without PHP?

Thanks,
Wayne.

Comments

fago’s picture

Component: User Interface » User interface

Currently it isn't. One way would be token support for variables of type "string", but that's hacky. Better would be this: http://groups.drupal.org/node/20643

dpantele’s picture

Version: 6.x-1.0-rc1 » 6.x-1.1

So, are there any ways to access a variable without php now?

mitchell’s picture

Status: Active » Fixed

See: Custom Tokens, I think.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.