function drupal_get_path_alias

cis7 drupal_get_path_alias($path = NULL, $path_language = NULL)
cle7 drupal_get_path_alias($path = NULL, $path_language = NULL)
elmsmedia7 drupal_get_path_alias($path = NULL, $path_language = NULL)
icor7 drupal_get_path_alias($path = NULL, $path_language = NULL)
meedjum_blog7 drupal_get_path_alias($path = NULL, $path_language = NULL)
mooc7 drupal_get_path_alias($path = NULL, $path_language = NULL)

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

If no path is provided, the function will return the alias of the current page.


$path: An internal Drupal path.

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

Return value

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

22 calls to drupal_get_path_alias()
admin_theme_custom_theme in sites/all/modules/ulmus/admin_theme/admin_theme.module
Implementation of hook_custom_theme().
advagg_mod_match_path in sites/all/modules/ulmus/advagg/advagg_mod/advagg_mod.module
Transforms all CSS files into inline CSS.
alpha_alpha_preprocess_html in sites/all/themes/ulmus/omega/alpha/template.php
Implements hook_preprocess_html().
at_generate_html_classes in sites/all/themes/ulmus/adaptivetheme/at_core/inc/
Return an array of classes to be used for body classes in html.tpl.php
block_block_list_alter in modules/block/block.module
Implements hook_block_list_alter().

... See full list


includes/, line 235
Functions to handle paths in Drupal, including path aliasing.


function drupal_get_path_alias($path = NULL, $path_language = NULL) {
  // If no path is specified, use the current page's path.
  if ($path == NULL) {
    $path = $_GET['q'];
  $result = $path;
  if ($alias = drupal_lookup_path('alias', $path, $path_language)) {
    $result = $alias;
  return $result;



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.