Even though the Rules module can handle the Drupal standard actions, it sometimes has problems. With this patch it corrects the issue where you cannot specify which context to use, but still uses the standard action.

This is currently working on http://twit.tv

An example is http://twitter.com/gheydon/statuses/1147736447

Comments

fago’s picture

StatusFileSize
new1.21 KB

hm unfortunately this won't work anymore with the recent rules dev version as I've dropped default support for core actions of type system, because most of them were not working properly without further fixes. I've updated the docs now, to reflect this.

So as there won't be the automatically transformed info, we have to provide the whole action info to rules. Furthermore I fixed to pass just NULL to it, so the action can be used even in cases where there is no node.

fago’s picture

Note I experienced some general troubles with the twitter action: http://drupal.org/node/369559

fago’s picture

StatusFileSize
new1.28 KB

forgot to add support for input evaluators, attached updated patch. So you can use tokens of every available variable with the action.

fago’s picture

Issue tags: +rules integration
gordon’s picture

Status: Needs review » Reviewed & tested by the community

I have been testing this on TWiT.tv and it is working great. please commit.

designerbrent’s picture

Status: Reviewed & tested by the community » Needs work

This does not seem to be doing the variable replacement. If i use the regular trigger based actions, I can use all the variables mentioned like %title, %teaser, etc but when using it with rules, it doesn't seem to do the replacement.

fago’s picture

Hm, right those replacement don't work right with rules as they working by hook-contexts that aren't available (or necessary) with rules. But you have all replacements provided by rules input evaluation plugins (tokens, php, ..). So probably we should just remove the help text regarding the built-in variable replacements for rules?

mitchell’s picture

subscribe

designerbrent’s picture

Finally got back to this. I've been testing and cannot get the twitter actions module in Rules to use the Tokens. When it twitters with tokens, it just passes them right through.

designerbrent’s picture

Status: Needs work » Reviewed & tested by the community

Wow.. how in the world did I miss #3... Added the input evaluators and bingo, it works! I would say it is ready to go at this point.

eaton’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thanks!

Status: Fixed » Closed (fixed)

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

pribeh’s picture

What about %node_url? Is there a token replacement that will utilize the url shortening wonder that the twitter module allows for? I can't find it. If not that's cool but I don't find rules integration that interesting without the use of those urls to link back to nodes, etc. Dont' mean to sound unappreciative - both these modules rock!