2 * Implements hook_url_inbound_alter().
4 function {{ machine_name }}_url_inbound_alter(&$path, $original_path, $path_language) {
5 // Create the path user/me/edit, which allows a user to edit their account.
6 if (preg_match('|^user/me/edit(/.*)?|', $path, $matches)) {
8 $path = 'user/' . $user->uid . '/edit' . $matches[1];