drupal_get_path_alias($path)
drupal-4-7/includes/path.inc, line 97
Given an internal Drupal path, return the alias set by the administrator.
$path An internal Drupal path.
An aliased path if one was found, or the original path if no alias was found.
<?php
function drupal_get_path_alias($path) {
$result = $path;
if ($alias = drupal_lookup_path('alias', $path)) {
$result = $alias;
}
if (function_exists('custom_url_rewrite')) {
$result = custom_url_rewrite('alias', $result, $path);
}
return $result;
}
?>