function globallink_taxonomy_get_info in GlobalLink Connect for Drupal 7.7
1 call to globallink_taxonomy_get_info()
- globallink_taxonomy_send_for_translations in globallink_taxonomy/
globallink_taxonomy.inc - Sends taxonomies for translation.
File
- globallink_taxonomy/
globallink_taxonomy.inc, line 831
Code
function globallink_taxonomy_get_info($tid) {
$query = db_select('taxonomy_term_data', 'ttd')
->fields('ttd', array(
'name',
))
->distinct()
->condition('tid', $tid, '=');
$results = $query
->execute();
$arr = new stdClass();
foreach ($results as $result) {
$arr = $result;
}
return $arr;
}