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!

Comments

pribeh’s picture

subscribe.

Michsk’s picture

I would also like to see this.

michaek’s picture

If you provide a patch, I'll apply it.

icecreamyou’s picture

StatusFileSize
new327 bytes
brisath’s picture

Subscribe

juampynr’s picture

Category: feature » task

Changed category to "task".

Note that a patch for the 7.x-3.x branch needs to be created and reviewed too.

jon pugh’s picture

Title: Add a hook when Tweets are saved » Add a hook when Tweets are saved: hook_twitter_status_save()
Version: 6.x-3.x-dev » 7.x-3.x-dev
StatusFileSize
new325 bytes

Here'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()

juampynr’s picture

Title: Add a hook when Tweets are saved: hook_twitter_status_save() » Add a hook when Tweets are saved at hook_twitter_status_save()
Status: Needs review » Fixed
Issue tags: +needs backport to 6.x
juampynr’s picture

juampynr’s picture

Status: Fixed » Closed (fixed)

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