function commons_groups_is_group_content in Drupal Commons 7.3
Helper function to determine whether an entity bundle is considered group content.
Parameters
$entity_type: The entity type to check group content settings for.
$bundle: The entity bundle to check group content settings for.
Return value
boolean The value of the group content setting if available, FALSE otherwise.
1 call to commons_groups_is_group_content()
- commons_groups_system_info_alter in modules/
commons/ commons_groups/ commons_groups.module - Implements hook_system_info_alter().
File
- modules/
commons/ commons_groups/ commons_groups.module, line 869
Code
function commons_groups_is_group_content($entity_type, $bundle) {
$commons_groups_entity_types = commons_groups_get_group_content_entity_types();
return isset($commons_groups_entity_types[$entity_type][$bundle]['is_group_content']) ? $commons_groups_entity_types[$entity_type][$bundle]['is_group_content'] : FALSE;
}