1 redirect.module | redirect_path_insert(array $path) |
Implements hook_path_insert().
File
- core/
modules/ redirect/ redirect.module, line 336
Code
function redirect_path_insert(array $path) {
// Check if the new path was previously a redirect and delete it.
if ($previous_redirect = redirect_load_by_source($path['alias'], $path['langcode'])) {
redirect_delete($previous_redirect->rid);
}
}