function twitter_screen_name_from_uid in Twitter 7.6
Obtain an account screen name from its Twitter UID.
Parameters
int $twitter_uid: The Twitter user account ID.
Return value
string The corresponding Twitter screen name.
1 call to twitter_screen_name_from_uid()
- twitter_post_field_widget_form in twitter_post/
twitter_post.field.inc - Implements hook_field_widget_form().
File
- ./
twitter.inc, line 416
Code
function twitter_screen_name_from_uid($twitter_uid) {
return db_select('twitter_account', 'ta')
->fields('ta', array(
'screen_name',
))
->condition('twitter_uid', $twitter_uid)
->range(0, 1)
->execute()
->fetchField();
}