| 5 path.inc | drupal_get_normal_path($path) |
| 6 path.inc | drupal_get_normal_path($path, $path_language = '') |
| 7 path.inc | drupal_get_normal_path($path, |
| 8 path.inc | drupal_get_normal_path($path, $langcode = NULL) |
Given a path alias, return the internal path it represents.
Parameters
$path: A Drupal path alias.
Return value
The internal path represented by the alias, or the original alias if no internal path was found.
File
- includes/
path.inc, line 117 - Functions to handle paths in Drupal, including path aliasing.
Code
<?php
function drupal_get_normal_path($path) {
$result = $path;
if ($src = drupal_lookup_path('source', $path)) {
$result = $src;
}
if (function_exists('custom_url_rewrite')) {
$result = custom_url_rewrite('source', $result, $path);
}
return $result;
}
?>Login or register to post comments