当前位置: 代码迷 >> Web前端 >> drupal中获取url别号
  详细解决方案

drupal中获取url别号

热度:121   发布时间:2013-03-22 09:49:50.0
drupal中获取url别名
drupal中获取url别名,可以直接通过drupal_get_path_alias()方式获取

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; }

1楼ruanruoruzhe昨天 13:47
[code=css]nadddddddddddddddddddddddddddn[/code]