You are here

function xmlsitemap_restore_user in XML sitemap 7.2

Same name and namespace in other branches
  1. 6.2 xmlsitemap.module \xmlsitemap_restore_user()

Restore the user that was originally loaded.

@codingStandardsIgnoreLine

Return value

object. Current user.

3 calls to xmlsitemap_restore_user()
XMLSitemapUnitTest::testSwitchUser in ./xmlsitemap.test
Tests for xmlsitemap_switch_user and xmlsitemap_restore_user().
xmlsitemap_custom_edit_link_form_validate in xmlsitemap_custom/xmlsitemap_custom.admin.inc
Edit Link Form Validate.
xmlsitemap_menu_xmlsitemap_process_menu_links in xmlsitemap_menu/xmlsitemap_menu.module
Process menu sitemap links.

File

./xmlsitemap.module, line 1471
xmlsitemap XML sitemap

Code

function xmlsitemap_restore_user() {
  return xmlsitemap_switch_user();
}