You are here

function persistent_login_update_7002 in Persistent Login 7

Update secure pages variable with new path to PL settings.

File

./persistent_login.install, line 106
Implementation of installation/uninstallation hooks.

Code

function persistent_login_update_7002() {
  $pl_secure_paths = variable_get('persistent_login_pages', '');
  if (!empty($pl_secure_paths)) {
    variable_set('persistent_login_pages', str_replace('admin/settings/persistent_login', 'admin/config/system/persistent_login', $pl_secure_paths));
  }
}