You are here

function _subscriptions_content_autosubscribe in Subscriptions 6

Same name and namespace in other branches
  1. 5.2 subscriptions_content.module \_subscriptions_content_autosubscribe()
  2. 7 subscriptions_content.module \_subscriptions_content_autosubscribe()
  3. 2.0.x subscriptions_content/subscriptions_content.module \_subscriptions_content_autosubscribe()

Auto-subscribe, if the content type is not blocked.

Parameters

$content_type: Content type of the node to subscribe to.

$module: Parameter for subscriptions_autosubscribe().

$field: Parameter for subscriptions_autosubscribe().

$value: Parameter for subscriptions_autosubscribe().

$context: Parameter for subscriptions_autosubscribe().

2 calls to _subscriptions_content_autosubscribe()
subscriptions_content_comment in ./subscriptions_content.module
Implementation of hook_comment().
subscriptions_content_nodeapi in ./subscriptions_content.module
Implementation of hook_nodeapi().

File

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

Code

function _subscriptions_content_autosubscribe($content_type, $module, $field, $value, $context) {
  if (!user_access('subscribe to content') || subscriptions_content_type_is_blocked($content_type)) {
    return;
  }
  subscriptions_autosubscribe($module, $field, $value, $context);
}