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.
Hi. I found this module very useful, but I think it miss the support of Flag entity fields. I've tried to make editable fields that are attached to Flag's module entity (bookmark flag) via Views, but no luck - no "Click to edit" button. Is it unsupported or am I missing something?
Comments
Comment #1
dwkitchen CreditAttribution: dwkitchen commentedI've come up against this as well and will have a look at it.
Comment #2
bsarchive CreditAttribution: bsarchive commented@dwkitchen, did you get anywhere with this? Is it a permissions check issue perhaps?
Comment #3
bsarchive CreditAttribution: bsarchive commentedThe problem is that Editablefields looks to see if the user has permission to 'update' the entity to which the field is attached. Flaggings don't seem to have standard access permissions (Flag settings are set indepently and are based on a users' ability to flag/unflag a particular entity, rather being able to create or update the flagging entity itself.)
As a botch, I changed in editablefields.module the following:
to this
I tried various combinations of using hook_flag_access and hook_entity_access in a module and invoking flag_flag_access within editablefields but all of these operate on the flag, rather than the flagging whereas the field is attached to the flagging.
I've also posted this issue in the flag queue.
Comment #4
IckZ CreditAttribution: IckZ commentedare there any updates for this topic?
Comment #5
OFF CreditAttribution: OFF commentedShank you, bsarchive!
#3 is working for me!
Comment #6
theshanergy CreditAttribution: theshanergy at Deck Fifty Design commentedTo accomplish this without hacking editablefields, you can add the following to a custom module:
Note that the access check is fairly broad - you may want to customize it to suit your needs.