Download & Extend

Implement Actions and Rules integration for Drupal 7

Project:Twitter
Version:7.x-3.x-dev
Component:Code
Category:task
Priority:major
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

After reading the code of twitter_actions, I see that it has not being ported to Drupal 7.

A full code review needs to be done so it integrates correctly with Actions, Trigger and Rules modules.

I have closed the issues related to twitter_actions as they only report specific bugs created by the unstable status of the submodule, which are:

I will post here progress over the following days. Patches are very welcome.

Comments

#1

Category:feature request» task

Changed category to "task".

#2

Just exposing twitter actions to triggers.
PATCH attached.
Please review.

AttachmentSize
twitter_actions_available_for_triggers_1317196.patch 1.02 KB

#3

Status:active» needs review

Changing status, needs review

#4

Adds support for rules and fixes error when enabling rules and twitter at the same time.

#5

The actual patch :-P

AttachmentSize
twitter_actions_rules_integration-1317196-5267134.patch 2.29 KB

#6

I updated the previous patch adding some useful conditions (at least for my own use case).

AttachmentSize
adds_conditions_and_actions_to_rules-1317196.patch 4.43 KB

#7

Title:Port twitter_actions submodule» Implement Rules integration for Drupal 7
Status:needs review» fixed

Applied patch by e0ipso.

aguskii, e0ipso, many thanks for the effort!

http://drupalcode.org/project/twitter.git/commitdiff/c392ea24b1d59faa5d9...

#8

Hi,
I can´t see the patch #2 applied.
Notice that it is different from the patch #6. (The patch #6 has been applied, but the other one has not).

Without this patch, twitter action won´t be exposed to admin/structure/trigger/node.

I attached the patch again (I renamed with #comment info).
Please review and applied

AttachmentSize
twitter_actions_available_for_triggers-1317196-8.patch 1.02 KB

#9

Status:fixed» needs review

Changing the status

#10

Title:Implement Rules integration for Drupal 7» Implement Actions and Rules integration for Drupal 7

aguskii, doh!, you are right. I will check this in the afternoon.

#11

Assigned to:juampy» Anonymous
Status:needs review» needs work

aguskii, this patch needs further work. I tested it with a node create trigger and it did not work because $context['hook'] had "node_insert" instead of "node".

Please test it yourself and add the relevant hooks.

#12

Ok juampy thanks for the fast response.

#13

Hi,
I have not much experience with actions and I think it needs more work, but I have added a new patch with some comments and it is working for me.
I have some questions:
1 - Why we use case: workflow? It was implemented for something that it is not present on D7 version?
2 - I've removed case: taxonomy, since there is not trigger implemented for taxonomy in the twitter_actions_action_info. Should we implement taxonomy triggers too?

Please test the patch and juanpy point me in the right direction... since I am not sure if the implementation that I've made is Ok.

AttachmentSize
twitter_actions_available_for_triggers-1317196-13.patch 6.37 KB

#14

Uuuupsss,
I mixed the body with the teaser (summary), here is the right patch.
And I've notice that messages up to 140 chars will not be posted to twitter and there is no feedback to the user telling him that the message couldn´t be sent.

AttachmentSize
twitter_actions_available_for_triggers-1317196-14.patch 6.37 KB

#15

Status:needs work» needs review

Now the %username for comments have been changed, from the node author to the comment "name" (anonymous or the name that the user has typed in).

AttachmentSize
twitter_actions_available_for_triggers-1317196-15.patch 6.38 KB

#16

Hi,
I added some doc and clean some code.
It is working fine so far, comments and reviews will be very welcome!

AttachmentSize
twitter_actions_available_for_triggers-1317196-16.patch 8.66 KB

#17

Status:needs review» reviewed & tested by the community

Works fine for me.
Great work

#18

Status:reviewed & tested by the community» fixed

Applied. Aguskii, many thanks for the great job.

http://drupalcode.org/project/twitter.git/commitdiff/a9d451e60c92df35b67...

#19

please update the module page to reflect rules support

#20

Status:fixed» closed (fixed)

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

nobody click here