You are here

function hook_twitter_insert_statuses in Twitter 7.6

Same name and namespace in other branches
  1. 6.5 twitter.api.php \hook_twitter_insert_statuses()
  2. 7.5 twitter.api.php \hook_twitter_insert_statuses()

Allow the system to react after tweets are saved.

Parameters

array $statuses: The statuses that were saved.

object $account: User account object.

See also

twitter_fetch_user_timeline()

1 invocation of hook_twitter_insert_statuses()
twitter_fetch_user_timeline in ./twitter.inc
Fetches a user's timeline.

File

./twitter.api.php, line 75
Describe hooks provided by Twitter module.

Code

function hook_twitter_insert_statuses($statues, $account) {
  watchdog('mymodule', '%count tweets were imported for %screenname.', array(
    '%count' => count($statuses),
    '%screenname' => $account->screen_name,
  ));
}