Sarkari Naukri and Naukri

Wednesday, 3 April 2013

get path of node id drupal


1.first options

$just_the_aliased_path=drupal_get_path_alias("node/".$THE_NID_HERE);

2.second options
 
and you can use url functions

$nid = 1; // Node ID
 
$url = url('node/' . $nid, $options);

No comments:

Post a Comment