function og_is_group_content_type in Organic groups 7
Same name and namespace in other branches
- 7.2 og.module \og_is_group_content_type()
Return TRUE if the entity type is a "group content" type.
This is a wrapper function around og_get_group_type().
Parameters
$node_type: The node type to be checked.
10 calls to og_is_group_content_type()
- og_field_access_og_permission in og_field_access/
og_field_access.module - Implements hook_og_permission().
- og_field_attach_form in ./
og.field.inc - Implements hook_field_attach_form().
- og_get_all_group_content_entity in ./
og.module - Return all the enteties that are a group content.
- og_is_node_group_content_check in plugins/
access/ og_is_node_group_content.inc - Check for access.
- og_list_permissions in ./
og.module - Helper function to generate standard node permission list for a given type.
File
- ./
og.module, line 2073 - Enable users to create and manage groups with roles and permissions.
Code
function og_is_group_content_type($entity_type, $bundle_name) {
return og_get_group_type($entity_type, $bundle_name, 'group content');
}