You are here

function subscriptions_content_suppress_notifications in Subscriptions 7

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

Provide a static flag to suppress notifications.

Parameters

bool|null $set:

Return value

bool

2 calls to subscriptions_content_suppress_notifications()
subscriptions_content_node_admin_nodes_submit in ./subscriptions_content.module
Handles bulk publishing.
subscriptions_content_node_insert in ./subscriptions_content.module
Implements hook_node_insert().

File

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

Code

function subscriptions_content_suppress_notifications($set = NULL) {
  static $suppress_notifications = FALSE;

  // not drupal_static!
  if ($set !== NULL) {
    $suppress_notifications = $set;
  }
  return $suppress_notifications;
}