You are here

function notifications_tags_term_name in Notifications 6.4

Same name and namespace in other branches
  1. 6 notifications_tags/notifications_tags.module \notifications_tags_term_name()
  2. 6.2 notifications_tags/notifications_tags.module \notifications_tags_term_name()
  3. 6.3 notifications_tags/notifications_tags.module \notifications_tags_term_name()

Fields information, translate term tid to name

1 string reference to 'notifications_tags_term_name'
notifications_tags_notifications in notifications_tags/notifications_tags.module
Implementation of hook_notifications().

File

notifications_tags/notifications_tags.module, line 198
Subscriptions to taxonomy terms

Code

function notifications_tags_term_name($tid, $html = FALSE) {
  if ($term = taxonomy_get_term($tid)) {
    return $html ? l($term->name, "taxonomy/term/{$tid}") : check_plain($term->name);
  }
}