You are here

protected function OAuthHTTPFetcher::getAuthenticatedUser in Feeds OAuth 7

Get authenticated user.

2 calls to OAuthHTTPFetcher::getAuthenticatedUser()
OAuthHTTPFetcher::fetch in ./OAuthHTTPFetcher.inc
Use signed URL to fetch content.
OAuthHTTPFetcher::sourceForm in ./OAuthHTTPFetcher.inc
Expose source form.

File

./OAuthHTTPFetcher.inc, line 237
Definition of the import batch object created on the fetching stage by OAuthHTTPFetcher.

Class

OAuthHTTPFetcher
Support OAuth authentication.

Code

protected function getAuthenticatedUser($source) {
  global $user;
  $source_node = node_load(@$source->feed_nid);
  return !empty($this->config['uid']) ? $this->config['uid'] : ($source_node ? $source_node->uid : $user->uid);
}