Core "advanced actions"

Events happening in the community are now at Drupal community events on www.drupal.org.
jredding's picture

I wasn't able to find the answer to my question in the docs or the issue queue. I apologize if its there and I missed it.

Rules supports core-style actions as per(http://drupal.org/node/299055) but it doesn't seem to support advanced actions. I'm curious as to why. Was this a developer decision? Code that hasn't been developed yet?

What I'm getting at is that a developer can choose to write an action for the actions module or an action for the Rules module but it doesn't seem that they can write an action that would work for both.

Is this correct?

Comments

What do you mean with

fago's picture

What do you mean with advanced action? A configurable action? That should work as usual.

but it doesn't seem that they can write an action that would work for both

You can write a core style action, which works for both - as rules supports core style actions. However in some cases, core style actions are too limited, e.g. if you need multiple variables as arguments...

OK..

jredding's picture

but you can write an action that only works for Rules, correct? (i.e you couldn't use it with core actions/triggers)

If you didn't need multiple variables as argument is it recommended to write your action (for example in you custom module) as a core action?

-Jacob Redding

-Jacob Redding

right

fago's picture

yes, if it is of value for you and possible I'd suggest you to do so - as this way you can be compatible to more modules.

Additionally I'd suggest to make sure that rules works fine with the action, e.g. you can specify additional 'eval input' form fields for the rules action. But of course that would be simpler if you just write a rules action.

Rules

Group organizers

Group categories

Categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: