You are here

function twitter_load_account_names in Twitter 7.6

Same name and namespace in other branches
  1. 7.5 twitter.inc \twitter_load_account_names()

Bare list of all account names, keyed by Twitter ID.

Return value

array A list of TwitterUser objects.

1 call to twitter_load_account_names()
twitter_last_tweet_field_field_widget_form in twitter_last_tweet_field/twitter_last_tweet_field.module
Implements hook_field_widget_form().

File

./twitter.inc, line 110

Code

function twitter_load_account_names() {
  $accounts = array();
  foreach (twitter_load_accounts() as $account) {
    if (isset($account->twitter_uid) && isset($account->name)) {
      $accounts[$account->twitter_uid] = check_plain($account->name);
    }
  }
  return $accounts;
}