You are here

public function Notifications_Taxonomy_Term_Subscription::get_name in Notifications 7

Get proper name

1 call to Notifications_Taxonomy_Term_Subscription::get_name()
Notifications_Content_Type_Term_Subscription::get_name in notifications_tags/notifications_tags.inc
Get proper name
1 method overrides Notifications_Taxonomy_Term_Subscription::get_name()
Notifications_Content_Type_Term_Subscription::get_name in notifications_tags/notifications_tags.inc
Get proper name

File

notifications_tags/notifications_tags.inc, line 204
Drupal Notifications Framework - Default class file

Class

Notifications_Taxonomy_Term_Subscription
Subscription to simple taxonomy term

Code

public function get_name() {
  if (isset($this->name)) {
    return $this->name;
  }
  elseif ($term = $this
    ->get_field('term:tid')
    ->drupal_object()) {
    return t('Content tagged with @term', array(
      '@term' => $term->name,
    ));
  }
  else {
    parent::get_name();
  }
}