function subscriptions_node_is_blocked in Subscriptions 7
Same name and namespace in other branches
- 5.2 subscriptions.module \subscriptions_node_is_blocked()
- 6 subscriptions.module \subscriptions_node_is_blocked()
- 2.0.x subscriptions.module.old.php \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.module - Asks for permission to display the subscriptions interface for the given node.
- subscriptions_ui_node_form in ./
subscriptions_ui.module - Returns the form definition for the node subform.
File
- ./
subscriptions.module, line 845 - Subscriptions module.
Code
function subscriptions_node_is_blocked($nid) {
return strpos(' ' . variable_get('subscriptions_blocked_nodes', '') . ' ', ' ' . $nid . ' ');
}