Drupal – Get taxonomy term by term ID

In Drupal 6, you can get the term object using the following function

taxonomy_get_term($tid);

 

In Druapl 7, this function is deprecated but you can get the term by term name.

taxonomy_get_term_by_name($name);

 

If you want to get the term by term ID, there is not yet a official solution but hopefully you could find more information in the following discussions.

 

Done =)

Reference:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.