1

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?

2 Answers 2

1

Just use the following code:

variable_set('og_content_type_usage_'. $type, 'group');
2
  • Excellent. All OG settings in the variable table? am I just over looking the documentation on this?
    – Tom
    Jul 2, 2011 at 18:24
  • I cann't say, depend what setting do you want change...
    – Nikit
    Aug 19, 2011 at 23:56
0

Just edit the content type and in 'Organic groups' section mark it as 'Group node'.

1
  • Thanks Maciej, but this is not the direction I am after.
    – Tom
    Jul 2, 2011 at 18:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.