Posted by juampy on October 21, 2011 at 6:07pm
10 followers
| Project: | |
| 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:
- #1233452: Post to Twitter trigger not found
- #1260158: rate limiting
- #1204960: ReflectionException: Function rules_core_action_execute() does not exist
I will post here progress over the following days. Patches are very welcome.
Comments
#1
Changed category to "task".
#2
Just exposing twitter actions to triggers.
PATCH attached.
Please review.
#3
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
#6
I updated the previous patch adding some useful conditions (at least for my own use case).
#7
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
#9
Changing the status
#10
aguskii, doh!, you are right. I will check this in the afternoon.
#11
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.
#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.
#15
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).
#16
Hi,
I added some doc and clean some code.
It is working fine so far, comments and reviews will be very welcome!
#17
Works fine for me.
Great work
#18
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
Automatically closed -- issue fixed for 2 weeks with no activity.