You are here

function notifications_content_node_update_action in Notifications 7

Send content notifications

2 string references to 'notifications_content_node_update_action'
notifications_content_install in notifications_content/notifications_content.install
Implementation of hook_install().
notifications_content_notifications in notifications_content/notifications_content.module
Implementation of hook_notifications()

File

notifications_content/notifications_content.module, line 511
Subscriptions to content events

Code

function notifications_content_node_update_action($node, $context = array()) {
  $node = $context['node'];

  // Content that was previously published has been updated.
  if (!empty($node->status) && !empty($node->notifications_status) && empty($node->notifications_content_disable)) {
    notifications_content_node_event('update', $node)
      ->trigger();
  }
}