Idea is to add checkbox field to multigroup called privacy and have 3 checkboxes - private, public, friends. this info is saved with field and will follow group item even if delta changes. then its a matter of css/js to make it apear as settings icons.
can such field be added dynamically? it sure can be added manually and set not to display.
such way you would have full features of your module working properly with multigroups. whats even more awesome, you could check field setting in preprocess function and display nice tokenized message like 'this information is for friends only'.
Comments
Comment #1
henrijs.seso commentedactually you would add checkbox field to each set of fields in multigroup.
Comment #2
henrijs.seso commentedthis function in custom module does the trick. Maybe it is possible to improve this so it could be a candidate for CCK Private Fields module?
Following code works if in multigroup a field
field_privacy_profile_positionis placed and one of options is 'Follower'. It is possible to hide fieldfield_profile_positionfrom people who are not followers.Markus, do you think such approach could be used? Is it safe enough to do things like this in preprocess function?
Comment #3
henrijs.seso commentedhere are updated function that properly removes field from display without messages or leaving trace, messages will probably just encourage hacking :)