There are situations you need to hide posted image from the site but it makes no sense to delete it from the Instagram account. Sadly the module hasn't had this ability until now. Here's the patch, it adds:
1. A permission. You may have several Instagram accounts attached to different users and have an ability to moderate them from the one editor account.
2. Views field handler - I've added it to the default view and called it "actions" - for now it has only delete link.
3. Deletion confirmation form. To prevent accidental deletions.
While the module uses "delete" verb in UI, actually the images aren't being deleted, they're being marked as hidden in the database. The "instagrams" view then doesn't show those images - you can create a view to show whether hidden or not images.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | drupagram-hidden_images-2453069-2.patch | 11.83 KB | s_leu |
| #2 | drupagram-hidden_images-2453069-2.interdiff.txt | 3.84 KB | s_leu |
| #1 | drupagram-hidden_images-2453069-1.patch | 11.85 KB | jim.m |
| drupagram-hidden_images.patch | 6.9 KB | jim.m |
Comments
Comment #1
jim.m commentedHere's the improved patch - a test is added. It creates dummy user, adds test image to the drupagram table, deletes it through the button and ensures the image gets hidden from users.
Comment #2
s_leu commentedChanged the patch in #1 slightly to simplify some stuff while re-rolling it, as it didn't apply to the latest dev anymore. Would be good to get this in, especially as it introduces a test.