OG - set group access / visibility programmatically

I create an OG-Node Type while user registration automatically - set the user to OG-Owner etc - works fine.
The only problem - all generated OGs are public by default. How can i change the group access to private ? On my OG-Node i can check a Option, but i don't find the right function to do this programmatically..

thx for help

How can I generate a folder for the subscriber and give the subscriber a copy of of a flash app I created?

I am aware of mkdir() and copy() however I am not sure where to put these codes in Drupal.

If I am correct the code to create a new directory is mkdir("/path/to/my/dir", 0700);

I am just not sure if I have to put it asp as part as the registration node. Also how to have the app be in their main page after they log in.

Comment login trough Facebook, Twitter or Google

Is there any module or any possibility that user can post comment only when he is loged in trough Facebook,Twitter or Google account, but WITHOUT creating new account in my site. I tried Loginza but it create new account in my site. So is there any other options?

Step-By-Step Content Type in d7?

I want to create a tutorial content type, something where people can upload images, title, body, etc into 'steps'; each step would then be linked together.
The users can upload an unlimited number of steps for the entire node. It is very similar to the instructables.com site. How could I achieve that?

By the way, someone did ask a similar question about this using Drupal 6. The suggestions were to use a story book content type, or to use CCK field grouping. I don't understand how to do those things in d7.

Using Views/Flags for # Following

I have installed the Flag module, and I have a view that displays how many followers (flags) an author has. How do I reverse that query, and output how many users that author is following?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x