You are here

function subscriptions_node_is_blocked in Subscriptions 2.0.x

Same name and namespace in other branches
  1. 5.2 subscriptions.module \subscriptions_node_is_blocked()
  2. 6 subscriptions.module \subscriptions_node_is_blocked()
  3. 7 subscriptions.module \subscriptions_node_is_blocked()

Returns TRUE if the given $nid is blocked.

Parameters

int $nid:

Return value

bool

2 calls to subscriptions_node_is_blocked()
subscriptions_ui_get_permission_to_handle in subscriptions_ui/subscriptions_ui.module
Asks for permission to display the subscriptions interface for the given node.
subscriptions_ui_node_form in subscriptions_ui/subscriptions_ui.module
Returns the form definition for the node subform.

File

./subscriptions.module.old.php, line 845
Subscriptions module.

Code

function subscriptions_node_is_blocked($nid) {
  return strpos('  ' . variable_get('subscriptions_blocked_nodes', '') . ' ', ' ' . $nid . ' ');
}