Same name and namespace in other branches
  1. 4.7.x includes/path.inc \drupal_get_normal_path()
  2. 5.x includes/path.inc \drupal_get_normal_path()
  3. 6.x includes/path.inc \drupal_get_normal_path()
  4. 7.x includes/path.inc \drupal_get_normal_path()

Given a path alias, return the internal path it represents.

3 calls to drupal_get_normal_path()
drupal_access_denied in includes/common.inc
Generates a 403 error if the request is not allowed.
drupal_not_found in includes/common.inc
Generates a 404 error if the request can not be handled.
_menu_build in includes/menu.inc
Build the menu by querying both modules and the database.

File

includes/common.inc, line 76
Common functions that many Drupal modules will need to reference.

Code

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;
  }
}