Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Add Privacy checkbox to node grant tab.
Would be a plus, to have the option to set a privacy checkbox when I want to set a node totally private and later when I reset the privacy option, all the permissions values will be return as default.
Comments
Comment #1
vlad.pavlovic CreditAttribution: vlad.pavlovic commentedAs of #2037899: Expose operations as API, which is currently committed to dev (and will be 1.5), you should be able to implement a custom module to do this for you fairly simply.
So when the checkbox (or whatever) is activated, you would:
1) call nodeaccess_get_grants to retrieve the current grants for the node, save them somewhere.
2) call nodeaccess_delete_grants to delete all grants for the node
Later, when the checkbox is unchecked, you would simply retrieve the grants for 1 and call nodeaccess_set_grants to set them to what they were.
Hope this helps.
Comment #3
vlad.pavlovic CreditAttribution: vlad.pavlovic commented