drupal_get_normal_path

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.

▾ 5 functions call 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.
l in includes/common.inc
Format an internal Drupal link.
search_index in modules/search.module
Update the full-text search index for a particular item.
_menu_build in includes/menu.inc
Build the menu by querying both modules and the database.

Code

includes/common.inc, line 76

<?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;
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.