You are here

function subscriptions_content_node_prepare in Subscriptions 7

Same name and namespace in other branches
  1. 2.0.x subscriptions_content/subscriptions_content.module \subscriptions_content_node_prepare()

Implements hook_node_prepare().

Determines whether notifications should be sent for this node.

Parameters

object $node:

2 calls to subscriptions_content_node_prepare()
subscriptions_content_node_admin_nodes_submit in ./subscriptions_content.module
Handles bulk publishing.
subscriptions_content_node_load in ./subscriptions_content.module
Implements hook_node_load().

File

./subscriptions_content.module, line 299
Subscriptions to content events

Code

function subscriptions_content_node_prepare($node) {
  $node->subscriptions_notify = in_array(isset($node->nid) ? $node->status ? 'n_pub' : 'n_unpub' : 'n_new', subscriptions_content_get_default_workflow($node->type));
}