15 May 2011

How to get node path alias in Drupal. All you need to know is node id(nid).

Source code viewer
  1. $node_id = 111; #id of the node
  2. echo drupal_get_path_alias('node/'.$node_id);
Programming Language: PHP