public function Notifications_Node_Type_Field::object_value in Notifications 7
Get value from node or from node type
Overrides Notifications_Field::object_value
File
- notifications_content/
notifications_content.inc, line 183 - Drupal Notifications Framework - Default class file
Class
- Notifications_Node_Type_Field
- Node type field
Code
public function object_value($object) {
if ($object->type == 'node' && ($node = $object
->get_object())) {
return $node->type;
}
elseif ($object->type == 'node_type') {
return $object
->get_value();
}
}