Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function ololourl_url_inbound_alter(&$path, $original_path, $path_language){
- $req = $_GET['q'].'?id='.$_GET['id'];
- if (preg_match('/^view_post.php\?id=(\d+)/', $req, $matches) ) {
- $path = 'node/'.$matches[1];
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement