function notifications_content_node_post_action in Notifications 7
Send content notifications
3 string references to 'notifications_content_node_post_action'
- NotificationsUserTestCase::setUp in notifications_user/
notifications_user.test - Sets up a Drupal site for running functional and integration tests.
- 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 498 - Subscriptions to content events
Code
function notifications_content_node_post_action($node, $context = array()) {
$node = $context['node'];
// Just for new nodes that are published and updated nodes that change status
if (!empty($node->status) && empty($node->notifications_content_disable)) {
notifications_content_node_event('post', $node)
->trigger();
}
}