You are here

public function Notifications_Node_Event::trigger in Notifications 7

Trigger node event

File

notifications_content/notifications_content.inc, line 89
Drupal Notifications Framework - Default class file

Class

Notifications_Node_Event
Node events

Code

public function trigger() {
  $node = $this
    ->get_node();
  if ($result = parent::trigger()) {
    watchdog('action', 'Triggered notifications for  @type %title..', array(
      '@type' => node_type_get_name($node),
      '%title' => $node->title,
    ));
  }
  return $result;
}