You are here

function subscriptions_content_type_is_blocked in Subscriptions 7

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

Returns whether the content type is blocked.

Parameters

string $content_type:

Return value

bool

2 calls to subscriptions_content_type_is_blocked()
_subscriptions_content_access in ./subscriptions_content.module
Implements _hook_access(), subhook of hook_subscriptions().
_subscriptions_content_autosubscribe in ./subscriptions_content.module
Auto-subscribes the user, if the content type is not blocked.

File

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

Code

function subscriptions_content_type_is_blocked($content_type) {

  /** @var $blockeds array */
  $blockeds = variable_get('subscriptions_blocked_content_types', array());
  return in_array($content_type, $blockeds, TRUE);
}