You are here

protected function FeedsAccountSwitcher::activateCurrentUser in Feeds 7.2

Assigns current user from this class to the global $user object.

2 calls to FeedsAccountSwitcher::activateCurrentUser()
FeedsAccountSwitcher::switchBack in includes/FeedsAccountSwitcher.inc
Reverts to a previous account after switching.
FeedsAccountSwitcher::switchTo in includes/FeedsAccountSwitcher.inc
Safely switches to another account.

File

includes/FeedsAccountSwitcher.inc, line 96
Contains FeedsAccountSwitcher class.

Class

FeedsAccountSwitcher
An implementation of FeedsAccountSwitcherInterface.

Code

protected function activateCurrentUser() {
  global $user;
  $user = $this->currentUser;
}