Hi
I wanted to be able to use Prepopulate to set the Group Content Visibility field (internal name group_content_access) when making an instance of a content type that has been flagged as og group content. This value is set via a select list in the new node's add/edit window.

After much fiddling around with the code, I got this to work, but I had to make a code change that I don't understand. Please advise if I'm doing something wrong, or if there is a better solution

This url worked, to get a new group post to be marked as Private - Accessible only to group members:
http://<my site>/node/add/group-post?edit[group_content_access][und]=2

To make this work, I had to comment out the 'container' element in the $limited_types array in function _prepopulate_request_walk() in prepopulate.module.

Does this make sense? Why is it a problem to leave 'container' in the $limited_types array?

Thanks for any suggestions

Comments

hanksterr7 created an issue.