You are here

public function Notifications_Taxonomy_Term_Create_Event::set_object in Notifications 7

Set main object id and vocabulary id when term is added

File

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

Class

Notifications_Taxonomy_Term_Create_Event
Node events

Code

public function set_object($object) {
  if ($object->type == 'taxonomy_term') {
    $this->oid = $object
      ->get_value();
    $this
      ->add_object('taxonomy_vocabulary', $object
      ->get_object()->vid);
  }
  return parent::set_object($object);
}