drupal_get_normal_path

  1. drupal
    1. drupal6
    2. drupal7
Versionen
drupal6 – drupal7 drupal_get_normal_path($path, $path_language = '')

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

Übergabeparameter

$path A Drupal path alias.

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

Rückgabewert

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

▾ 9 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.
menu_edit_item_validate in modules/menu/menu.admin.inc
Validate form values for a menu link being added or edited.
search_index in modules/search/search.module
Update the full-text search index for a particular item.
system_site_information_settings_validate in modules/system/system.admin.inc
Validate the submitted site-information form.
system_update_6021 in modules/system/system.install
Migrate the menu items from the old menu system to the new menu_links table.
_menu_site_is_offline in includes/menu.inc
Checks whether the site is off-line for maintenance.

Code

includes/path.inc, line 129

<?php
function drupal_get_normal_path($path, $path_language = '') {
  $result = $path;
  if ($src = drupal_lookup_path('source', $path, $path_language)) {
    $result = $src;
  }
  if (function_exists('custom_url_rewrite_inbound')) {
    // Modules may alter the inbound request path by reference.
    custom_url_rewrite_inbound($result, $path, $path_language);
  }
  return $result;
}
?>

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen