You are here

function _twitter_status_url in Twitter 7.5

Same name and namespace in other branches
  1. 6.5 twitter.module \_twitter_status_url()
  2. 7.6 twitter.module \_twitter_status_url()

Helper to build a Twitter status URL.

Parameters

object $status: A TwitterStatus object.

1 call to _twitter_status_url()
twitter_post_node_insert in twitter_post/twitter_post.module
Implementation of hook_node_insert().

File

./twitter.module, line 634
Provides API integration with the Twitter microblogging service.

Code

function _twitter_status_url($status) {
  if ($status) {
    return TWITTER_HOST . '/' . $status->user->screen_name . '/status/' . $status->id;
  }
}