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