You are here

function _taxonomy_term_resource_retrieve in Services 7.3

Same name and namespace in other branches
  1. 6.3 resources/taxonomy_resource.inc \_taxonomy_term_resource_retrieve()

Return the results of taxonomy_get_term() for a specified term id.

Parameters

$tid: Unique identifier for the taxonomy term to retrieve.

Return value

A term object.

See also

taxonomy_get_term()

1 string reference to '_taxonomy_term_resource_retrieve'
_taxonomy_resource_definition in resources/taxonomy_resource.inc
@file Link general taxonomy functionalities to services module.

File

resources/taxonomy_resource.inc, line 374
Link general taxonomy functionalities to services module.

Code

function _taxonomy_term_resource_retrieve($tid) {
  $term = taxonomy_term_load($tid);

  //Lets check field_permissions
  $term = services_field_permissions_clean('view', 'taxonomy_term', $term);
  return $term;
}