I am creating a module that creates a node type. How do I declare the node type as an OG group node and other OG settings on the module install?
Just use the following code:
variable_set('og_content_type_usage_'. $type, 'group');
Just edit the content type and in 'Organic groups' section mark it as 'Group node'.