0

I want to use my own code to determine if a user has edit access on certain fields. hook_field_access for Drupal 7 looks right. Is there a comparable hook for Drupal 6?

1 Answer 1

2

A hook with exactly the same name exists for CCK in Drupal 6, it just doesn't seem to be all that well documented.

It's invoked from the content_access() function and has the following signature:

function MYMODULE_field_access($op, $field, $account = NULL, $node = NULL) {

}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.