function _subscriptions_content_autosubscribe in Subscriptions 5.2
Same name and namespace in other branches
- 6 subscriptions_content.module \_subscriptions_content_autosubscribe()
- 7 subscriptions_content.module \_subscriptions_content_autosubscribe()
- 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 644 - Subscriptions to content events
Code
function _subscriptions_content_autosubscribe($content_type, $module, $field, $value, $context) {
$blockeds = variable_get('subscriptions_blocked_content_types', array());
if (in_array($content_type, $blockeds)) {
return;
}
subscriptions_autosubscribe($module, $field, $value, $context);
}