We did talk about using drupal_lookup_path() to get path alias.
The above function is still working in Drupal 7. We could also use the url() to get the path alias url as well.
// Get the node id path alias
url('node/' . $tid);
// Get the term id path alias
url('taxonomy/term/' . $tid);
Done =)
Reference:

Reblogged this on Drupal Developer Dubai.
LikeLike