--- path.inc1 Tue Jan 24 09:18:26 2006 +++ path.inc Mon Apr 10 00:17:42 2006 @@ -83,14 +83,21 @@ * * @param $path * An internal Drupal path. + * @param $in_path + * Helper parameter for path_nodeapi callback. * * @return * An aliased path if one was found, or the original path if no alias was * found. */ -function drupal_get_path_alias($path) { +function drupal_get_path_alias($path, $in_path = FALSE) { $result = $path; if ($alias = drupal_lookup_path('alias', $path)) { + // If we have path alias for Drupal path, then tell path_nodeapi of this. + if($result != $alias) { + $in_path = TRUE; + } + $result = $alias; } if (function_exists('custom_url_rewrite')) {