diff --git a/features.module b/features.module index b5b5f68..3f0cc4b 100644 --- a/features.module +++ b/features.module @@ -219,9 +219,18 @@ function features_form($node, $form_state) { /** * Implemenation of hook_access() + * + * To hook into content type's access control for those which are managed via Features it's simply + * required to implement a hook_features_node_access_alter() in your module */ function features_access($op, $node, $account) { - return node_content_access($op, $node, $account); + // get access status from drupal's node access system + $status = node_content_access($op, $node, $account); + + // provide 3rd party modules with the ability to control a content type's access + drupal_alter('features_node_access', $status, $op, $node, $account); + + return $status; } /**