1. drupal
    1. 5
    2. 6
    3. 7
    4. 8
5 drupal_get_normal_path($path)
6 drupal_get_normal_path($path, $path_language = '')
8 – 7 drupal_get_normal_path($path, $path_language = NULL)

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


$path A Drupal path alias.

$path_language An optional language code to look up the path in.

Return value

The internal path represented by the alias, or the original alias if no internal path was found.

▾ 12 functions call drupal_get_normal_path()

drupal_deliver_html_page in includes/common.inc
Package and send the result of a page callback to the browser as HTML.
drupal_path_initialize in includes/path.inc
Initialize the $_GET['q'] variable to the proper normal path.
menu_edit_item_validate in modules/menu/menu.admin.inc
Validate form values for a menu link being added or edited.
path_admin_form_validate in modules/path/path.admin.inc
Verify that a URL alias is valid
search_index in modules/search/search.module
Update the full-text search index for a particular item.
ShortcutLinksTestCase::testShortcutLinkAdd in modules/shortcut/shortcut.test
Tests that creating a shortcut works properly.
shortcut_admin_add_link in modules/shortcut/shortcut.admin.inc
Adds a link to the end of a shortcut set, keeping within a prescribed limit.
shortcut_link_edit_submit in modules/shortcut/shortcut.admin.inc
Submit handler for shortcut_link_edit().
shortcut_valid_link in modules/shortcut/shortcut.module
Determines if a path corresponds to a valid shortcut link.
system_site_information_settings_validate in modules/system/system.admin.inc
Validates the submitted site-information form.
system_update_7047 in modules/system/system.install
Normalize the front page path variable.
UrlAlterFunctionalTest::assertUrlInboundAlter in modules/simpletest/tests/path.test
Assert that a inbound path is altered to an expected value.


includes/path.inc, line 259

function drupal_get_normal_path($path, $path_language = NULL) {
  $original_path = $path;

  // Lookup the path alias first.
  if ($source = drupal_lookup_path('source', $path, $path_language)) {
    $path = $source;

  // Allow other modules to alter the inbound URL. We cannot use drupal_alter()
  // here because we need to run hook_url_inbound_alter() in the reverse order
  // of hook_url_outbound_alter().
  foreach (array_reverse(module_implements('url_inbound_alter')) as $module) {
    $function = $module . '_url_inbound_alter';
    $function($path, $original_path, $path_language);

  return $path;