og_node_type_delete
- drupal
Drupal 7 og_node_type_delete($info)
- 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
- sites/
all/ modules/ og/ og.module, line 833 - 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);
}

