Closed (fixed)
Project:
Twitter
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
27 Aug 2011 at 06:17 UTC
Updated:
11 May 2012 at 22:30 UTC
Jump to comment: Most recent file
Hi, I'm the maintainer of the Facebook-style Statuses module (Statuses for D7). I'd like to use the Twitter module to import tweets from Twitter to Drupal. Unfortunately though, I can't, because there's no way for other modules to know when the Twitter module is saving tweets to Drupal. More about that is in #571802: Import tweets from Twitter to Facebook-style Statuses.
So, what I need is for module_invoke_all('twitter_status_update', $status) to be added to the function twitter_status_save() on line 69 of twitter.inc. This hook was in the 2.x branch, but for whatever reason was dropped from the 3.x branch.
Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 1261704-hook_twitter_status_save-7.patch | 325 bytes | jon pugh |
| #4 | save-status-hook-1261704.patch | 327 bytes | icecreamyou |
Comments
Comment #1
pribeh commentedsubscribe.
Comment #2
Michsk commentedI would also like to see this.
Comment #3
michaek commentedIf you provide a patch, I'll apply it.
Comment #4
icecreamyou commentedComment #5
brisath commentedSubscribe
Comment #6
juampynr commentedChanged category to "task".
Note that a patch for the 7.x-3.x branch needs to be created and reviewed too.
Comment #7
jon pughHere's a patch against 7.x-3.x. Looks like 6.x is identical but short 1 line.
#4 should be changed so the hook matches the function name: hook_twitter_status_save()
Comment #8
juampynr commentedCommitted to 7.x-3.x.
http://drupalcode.org/project/twitter.git/commitdiff/9171a1b
Comment #9
juampynr commentedBackported to 6.x-3.x.
http://drupalcode.org/project/twitter.git/commitdiff/60eac34c53f23a32419...
Comment #10
juampynr commentedAdded twitter.api.php implementations to document the available hooks.
http://drupalcode.org/project/twitter.git/commitdiff/2b2a8d2
http://drupalcode.org/project/twitter.git/commitdiff/0c2660d