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');
| improve this answer | |
  • Excellent. All OG settings in the variable table? am I just over looking the documentation on this? – Tom Jul 2 '11 at 18:24
  • I cann't say, depend what setting do you want change... – Nikit Aug 19 '11 at 23:56

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

| improve this answer | |
  • Thanks Maciej, but this is not the direction I am after. – Tom Jul 2 '11 at 18:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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