drupal_get_normal_path
includes/common.inc, line 76
- Versions
- 4.6 – 5
drupal_get_normal_path($path)- 6 – 7
drupal_get_normal_path($path, $path_language = '')
Given a path alias, return the internal path it represents.
Code
<?php
function drupal_get_normal_path($path) {
if (($map = drupal_get_path_map()) && isset($map[$path])) {
return $map[$path];
}
elseif (function_exists('conf_url_rewrite')) {
return conf_url_rewrite($path, 'incoming');
}
else {
return $path;
}
}
?> 