Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When trying to use the module I get:
Fatal error: Call to undefined function content_access() in editablefields.module on line 84
Replacing content_access with content_permissions_field_access seems to fix the problem for me, I've attached a patch that checks if you have content_permssions enables and uses that if you do.
Comment | File | Size | Author |
---|---|---|---|
editablefields-fix-content-access.diff | 614 bytes | asciikewl |
Comments
Comment #1
psynaptic CreditAttribution: psynaptic commentedI have tested this and it works fine. Please commit. :)
Comment #2
markfoodyburton CreditAttribution: markfoodyburton commentedYOu shoudl update to the latest (dev) version of CCK, this patch is, I think, only valid on older versions of CCK.
Cheers
Mark.
Comment #3
tim.plunkettTrailing whitespace here, but that could be fixed on commit
Thats indented 5 spaces, kinda odd. It could just go on one line, or 6 spaces in.
Comment #4
stewart.adam CreditAttribution: stewart.adam commentedThis patch calls a hook implementation directly (content_permissions_field_access is an implementation of hook_field_access) and will therefore ignore any permissions defined through this hook in other modules. It should use module_load_include() to include the file content_access() is defined in (i.e. content.module) and call content_access() to check for permissions it as before.
Comment #5
joelpittetLast update was 2012, going to close as outdated because it's against 6.x branch.