You are here

function subscriptions_content_type_is_blocked in Subscriptions 6

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

Return TRUE if the content type is blocked.

Parameters

$content_type:

2 calls to subscriptions_content_type_is_blocked()
_subscriptions_content_access in ./subscriptions_content.module
Implementation of hook_access(), subhook of hook_subscriptions().
_subscriptions_content_autosubscribe in ./subscriptions_content.module
Auto-subscribe, if the content type is not blocked.

File

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

Code

function subscriptions_content_type_is_blocked($content_type) {
  $blockeds = variable_get('subscriptions_blocked_content_types', array());
  return in_array($content_type, $blockeds);
}