You are here

function og_node_type_delete in Organic groups 7

Implement hook_node_type_delete().

We immediately delete those variables as they are only used to indicate a content type should be a group or a group content. However, the actual indication for it is in the field API. This is just a workaround, specifically for the node entity, to allow users to define groups via the "content type" page.

File

./og.module, line 848
Enable users to create and manage groups with roles and permissions.

Code

function og_node_type_delete($info) {
  variable_del('og_group_type_' . $info->type);
  variable_del('og_group_content_type_' . $info->type);
}