You are here

function simplenews_revert_user in Simplenews 7

Same name and namespace in other branches
  1. 7.2 simplenews.module \simplenews_revert_user()

Reverts to the previous user after impersonating.

Return value

Current user.

See also

simplenews_impersonate_user()

2 calls to simplenews_revert_user()
SimplenewsSourceNode::resetContext in includes/simplenews.source.inc
Reset the context.
simplenews_mail_spool in includes/simplenews.mail.inc
Send simplenews newsletters from the spool.

File

./simplenews.module, line 2755
Simplenews node handling, sent email, newsletter block and general hooks

Code

function simplenews_revert_user() {
  return simplenews_impersonate_user();
}