function og_is_group_type in Organic groups 7.2
Same name and namespace in other branches
- 5.8 og.module \og_is_group_type()
- 5 og.module \og_is_group_type()
- 5.2 og.module \og_is_group_type()
- 5.3 og.module \og_is_group_type()
- 5.7 og.module \og_is_group_type()
- 6.2 og.module \og_is_group_type()
- 6 og.module \og_is_group_type()
- 7 og.module \og_is_group_type()
Return TRUE if the entity type is a "group" type.
This is a wrapper function around og_get_group_type().
Parameters
$node_type: The node type to be checked.
6 calls to og_is_group_type()
- OgSelectionHandler::settingsForm in plugins/
entityreference/ selection/ OgSelectionHandler.class.php - Override EntityReferenceHandler::settingsForm().
- og_field_access_og_permission in og_field_access/
og_field_access.module - Implements hook_og_permission().
- og_field_attach_form in ./
og.module - Implements hook_field_attach_form().
- og_get_all_group_bundle in ./
og.module - Return all bundles that are a group type.
- og_ui_form_node_type_form_alter in og_ui/
og_ui.module - Implement hook_form_FORM_ID_alter().
File
- ./
og.module, line 2471 - Enable users to create and manage groups with roles and permissions.
Code
function og_is_group_type($entity_type, $bundle_name) {
return og_get_group_type($entity_type, $bundle_name);
}