function _content_access_rules_check_setting in Content Access 6
Same name and namespace in other branches
- 7 content_access_rules/content_access_rules.rules.inc \_content_access_rules_check_setting()
Verifies that per content settings are activated for the given node.
6 calls to _content_access_rules_check_setting()
- content_access_action_acl_grant_access in ./
content_access.rules.inc - Action implementation: Grant access for a user.
- content_access_action_acl_revoke_access in ./
content_access.rules.inc - Action implementation: Revoke access for a user.
- content_access_action_grant_node_permissions in ./
content_access.rules.inc - Action implementation: Grant permissions for a node.
- content_access_action_reset_node_permissions in ./
content_access.rules.inc - Action implementation: Reset permissions for a node.
- content_access_action_revoke_node_permissions in ./
content_access.rules.inc - Action implementation: Revoke permissions for a node.
File
- ./
content_access.rules.inc, line 30 - Rules specific functions that expose content_access' API.
Code
function _content_access_rules_check_setting($node) {
if (!content_access_get_settings('per_node', $node->type)) {
rules_log(t("Can't set per content permissions for content type @type. Make sure to have per content settings activated for content types you want to alter access control for.", array(
'@type' => node_get_types('name', $node->type),
)), TRUE);
return FALSE;
}
return TRUE;
}