You are here

function Notifications_Taxonomy_Term_Field::object_value in Notifications 7

Get value/s from object

Overrides Notifications_Field::object_value

File

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

Class

Notifications_Taxonomy_Term_Field
Taxonomy term field

Code

function object_value($object) {
  if ($object->type == 'node') {

    // If the object is a node, get all tids for it
    $node = $object
      ->get_object();
    return array_keys(notifications_tags_node_terms($node));
  }
  else {
    return parent::object_value($object);
  }
}