1 system.install system_update_1051()

Notify administrators if a non-core version of Redirect module is present.

Related topics

File

core/modules/system/system.install, line 2940
Install, update and uninstall functions for the system module.

Code

function system_update_1051() {
  $path = backdrop_get_path('module', 'redirect');
  if ($path && strpos($path, 'core/modules/redirect') === FALSE) {
    backdrop_set_message(t('Backdrop core now provides a bundled Redirect module. A different copy of Redirect module has been located at %path. Remove this module from your installation to use the new Redirect module. For more information see the <a href="https://docs.backdropcms.org/node/43994" target="_blank">Redirect change notice</a>.', array('%path' => BACKDROP_ROOT . '/' . $path)), 'warning');
  }
}