Someone
public php v1 · immutable if ($action == 'alias') { $alias = drupal_get_path_cache($path); if (isset($map[$path]) || array_key_exists($path, $map)) { return $map[$path]; } else if (isset($alias)) { $map[$path] = $alias; return $alias; } else { $alias = db_result(db_query("SELECT dst FROM {url_alias} WHERE src = '%s'", $path)); $map[$path] = $alias; return $alias; } }