Timeline for How to remove a comment based on it's field value?
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 11, 2015 at 9:57 | comment | added | M a m a D |
@Pinoniq I always use entity module. But here is a problem, I need to remove some comments based on the site language. My approach only removes the comments from the current page and it won't alter the Database, in fact it changes the way to display content. But when you use entity_metadata_wrappers you must use save() function which causes to completely remove that comment from the database. so it won't work in here. Besides that it only remains [0] because every comment has exactly one language field
|
|
Aug 11, 2015 at 9:48 | comment | added | Pinoniq | I don't like the [0] and ['value']. What if that changes? entity_metadata_wrappers could clean this up. but then again, this adds a dependency to entity. But when is this a problem? | |
Aug 11, 2015 at 7:23 | history | answered | Andrew | CC BY-SA 3.0 |