drupal_get_path_alias

  1. drupal
    1. drupal6
    2. drupal7
Versionen
drupal6 drupal_get_path_alias($path, $path_language = '')
drupal7 drupal_get_path_alias($path = NULL, $path_language = '')

Given an internal Drupal path, return the alias set by the administrator.

Übergabeparameter

$path An internal Drupal path.

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

Rückgabewert

An aliased path if one was found, or the original path if no alias was found.

▾ 5 functions call drupal_get_path_alias()

block_list in modules/block/block.module
Return all blocks in the specified region for the current user.
path_nodeapi in modules/path/path.module
Implementation of hook_nodeapi().
path_set_alias in modules/path/path.module
Set an aliased path for a given Drupal path, preventing duplicates.
url in includes/common.inc
Generates an internal or external URL.
_statistics_link in modules/statistics/statistics.module
It is possible to adjust the width of columns generated by the statistics module.

Code

includes/path.inc, line 109

<?php
function drupal_get_path_alias($path, $path_language = '') {
  $result = $path;
  if ($alias = drupal_lookup_path('alias', $path, $path_language)) {
    $result = $alias;
  }
  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