New module path_alias_xt

This commit is contained in:
Manuel Cillero 2017-07-25 12:37:28 +02:00
parent d3aeafdc7e
commit 893f61f947

View file

@ -106,6 +106,11 @@ function drupal_lookup_path($action, $path = '', $path_language = '') {
* found.
*/
function drupal_get_path_alias($path, $path_language = '') {
if (module_exists('path_alias_xt')) {
return path_alias_xt_get_path_alias($path, $path_language);
}
$result = $path;
if ($alias = drupal_lookup_path('alias', $path, $path_language)) {
$result = $alias;