drupal_get_normal_path

  1. drupal
    1. 4.7
    2. 5
    3. 6 path.inc
    4. 7 path.inc
Versions
4.7 – 5 drupal_get_normal_path($path)
6 drupal_get_normal_path($path, $path_language = '')
7 drupal_get_normal_path($path, $path_language = 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.

▾ 7 functions call drupal_get_normal_path()

drupal_access_denied in includes/common.inc
Generates a 403 error if the request is not allowed.
drupal_init_path in includes/path.inc
Initialize the $_GET['q'] variable to the proper normal path.
drupal_is_front_page in includes/path.inc
Check if the current page is the front page.
drupal_not_found in includes/common.inc
Generates a 404 error if the request can not be handled.
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.
_menu_site_is_offline in includes/menu.inc
Returns TRUE if the site is off-line for maintenance.

Code

includes/path.inc, line 119

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