Closed (fixed)
Project:
Twitter
Version:
7.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
21 Oct 2011 at 18:07 UTC
Updated:
18 Dec 2011 at 16:40 UTC
Jump to comment: Most recent file
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
Comment #1
juampynr commentedChanged category to "task".
Comment #2
tuwebo commentedJust exposing twitter actions to triggers.
PATCH attached.
Please review.
Comment #3
tuwebo commentedChanging status, needs review
Comment #4
e0ipsoAdds support for rules and fixes error when enabling rules and twitter at the same time.
Comment #5
e0ipsoThe actual patch :-P
Comment #6
e0ipsoI updated the previous patch adding some useful conditions (at least for my own use case).
Comment #7
juampynr commentedApplied patch by e0ipso.
aguskii, e0ipso, many thanks for the effort!
http://drupalcode.org/project/twitter.git/commitdiff/c392ea24b1d59faa5d9...
Comment #8
tuwebo commentedHi,
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
Comment #9
tuwebo commentedChanging the status
Comment #10
juampynr commentedaguskii, doh!, you are right. I will check this in the afternoon.
Comment #11
juampynr commentedaguskii, 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.
Comment #12
tuwebo commentedOk juampy thanks for the fast response.
Comment #13
tuwebo commentedHi,
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.
Comment #14
tuwebo commentedUuuupsss,
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.
Comment #15
tuwebo commentedNow 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).
Comment #16
tuwebo commentedHi,
I added some doc and clean some code.
It is working fine so far, comments and reviews will be very welcome!
Comment #17
rodrigoaguileraWorks fine for me.
Great work
Comment #18
juampynr commentedApplied. Aguskii, many thanks for the great job.
http://drupalcode.org/project/twitter.git/commitdiff/a9d451e60c92df35b67...
Comment #19
giorgoskplease update the module page to reflect rules support