Closed (outdated)
Project:
Flag
Version:
7.x-3.x-dev
Component:
Flag core
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Jul 2012 at 23:12 UTC
Updated:
18 Aug 2025 at 14:06 UTC
Jump to comment: Most recent
Comments
Comment #1
joachim commentedPossible, probably. Time-consuming, maybe.
The 'someone' is the tricky part though. I doubt either of the maintainers will be working on this, so it's all up to whether someone else wants to work on this feature.
Comment #2
drupik commentedFlagging now is entities, I was full of hope, but no, nothing changed. All entity types (node, comment, taxonomy_term, taxonomy_vocabulary, field_collection_item, file, message, model, etc.) saved in mongodb, but no flagging. How do you implement flagging as entity? I cannot use EntityFieldQuery on flagging (return nothing), cannot attach fields (if using mongodb_field_storage), I have no problems with all other entities.
Comment #3
joachim commentedAFAIK flagging entities are pretty normal entities. Been a while since I looked at the code closely, but I don't recall any weirdness.
Though it may be that we're missing some of the CRUD functions -- there is an issue open for those IIRC.
Also, the problem may be that we're not using Entity API. All the entities you list are either custom entities which use Entity API (field_collection_item, file, model certainly; message I am guessing), or core entities that Entity API steps in and provides support for. That might be another avenue to explore.
I don't want to add Entity API as a dependency for Flag, but I'd be happy to have properties in hook_entity_info() that it needs -- and that just get ignored if it's not present.
Comment #4
drupik commentedThanks @joachim for the very fast response. Flag is the module that must have, I use it on almost every site, but now we had to do community site with big traffic, and only the flags module keeps us from generating the page with less than 40 milliseconds. I'll look at this more closely, if I find something, I'll write about it, but I think you're probably right with the relationship between entity API.
Thanks :)
Comment #5
ivnishDrupal 7 is EOL. No more new features will be added.