Drupal 6 get path auto programmatically


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php
  2. // You can use this in your template.php file
  3. if (module_exists('path')) {
  4. $alias = drupal_get_path_alias($_GET['q']);
  5. print $alias;
  6. }
  7. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.