drupal中获取url别名 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;}
drupal中获取url别名,可以直接通过drupal_get_path_alias()方式获取