public function FeedsAccountSwitcherInterface::switchTo in Feeds 7.2
Safely switches to another account.
Each invocation of FeedsAccountSwitcherInterface::switchTo() must be matched by a corresponding invocation of FeedsAccountSwitcherInterface::switchBack() in the same function.
Parameters
object $account: The account to switch to.
Return value
FeedsAccountSwitcherInterface $this.
1 method overrides FeedsAccountSwitcherInterface::switchTo()
- FeedsAccountSwitcher::switchTo in includes/
FeedsAccountSwitcher.inc - Safely switches to another account.
File
- includes/
FeedsAccountSwitcherInterface.inc, line 26 - Contains FeedsAccountSwitcherInterface interface.
Class
- FeedsAccountSwitcherInterface
- Defines an interface for a service for safe account switching.
Code
public function switchTo($account);