You are here

public function Notifications_Taxonomy_Term_Subscription::add_term in Notifications 7

Add term object

1 call to Notifications_Taxonomy_Term_Subscription::add_term()
Notifications_Taxonomy_Term_Subscription::add_term_by_name in notifications_tags/notifications_tags.inc
Add term by name (and optional vid)

File

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

Class

Notifications_Taxonomy_Term_Subscription
Subscription to simple taxonomy term

Code

public function add_term($term) {
  $this
    ->add_field('term:tid', $term->tid);
  return $this;
}