function og_is_group_content_type in Organic groups 7.2
Same name and namespace in other branches
- 7 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
$entity_type: The entity type to be checked.
15 calls to og_is_group_content_type()
- og_entity_delete in ./
og.module - Implements hook_entity_delete().
- og_field_access_field_access in og_field_access/
og_field_access.module - Implements hook_field_access().
- og_field_access_og_permission in og_field_access/
og_field_access.module - Implements hook_og_permission().
- og_get_all_group_content_bundle in ./
og.module - Return all the entities that are a group content.
- og_get_all_group_content_entity in ./
og.module - Return all the entities that are a group content.
File
- ./
og.module, line 2483 - 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');
}