New module path_alias_xt
This commit is contained in:
parent
d3aeafdc7e
commit
893f61f947
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue