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 CreditAttribution: pribeh commentedsubscribe.
Comment #2
Michsk CreditAttribution: Michsk commentedI would also like to see this.
Comment #3
michaek CreditAttribution: michaek commentedIf you provide a patch, I'll apply it.
Comment #4
IceCreamYou CreditAttribution: IceCreamYou commentedComment #5
brisath CreditAttribution: brisath commentedSubscribe
Comment #6
juampynr CreditAttribution: 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 CreditAttribution: juampynr commentedCommitted to 7.x-3.x.
http://drupalcode.org/project/twitter.git/commitdiff/9171a1b
Comment #9
juampynr CreditAttribution: juampynr commentedBackported to 6.x-3.x.
http://drupalcode.org/project/twitter.git/commitdiff/60eac34c53f23a32419...
Comment #10
juampynr CreditAttribution: 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