public function Notifications_Taxonomy_Term_Multiple_Subscription::add_term in Notifications 7
Add term object
1 call to Notifications_Taxonomy_Term_Multiple_Subscription::add_term()
- Notifications_Taxonomy_Term_Multiple_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 281 - Drupal Notifications Framework - Default class file
Class
- Notifications_Taxonomy_Term_Multiple_Subscription
- Subscription to simple taxonomy term
Code
public function add_term($term) {
return $this
->add_field('term:tid', $term->tid);
}