1 common.inc | backdrop_goto_deprecated($path = '', array $options = array(), $http_response_code = 302) |
A wrapper function for deprecated menu entries redirecting to their new path.
@since 1.5.0
See also
Related topics
File
- core/
includes/ common.inc, line 783 - Common functions that many Backdrop modules will need to reference.
Code
function backdrop_goto_deprecated($path = '', array $options = array(), $http_response_code = 302) {
watchdog('system', 'The path %path has been deprecated and will be removed in the next major release of Backdrop. This path was called from %referrer. It is recommended to remove it from any existing links.', array('%path' => $path, '%referrer' => $_SERVER['HTTP_REFERER']), WATCHDOG_DEPRECATED);
backdrop_goto($path, $options, $http_response_code);
}