You are here

function og_is_group_type in Organic groups 7

Same name and namespace in other branches
  1. 5.8 og.module \og_is_group_type()
  2. 5 og.module \og_is_group_type()
  3. 5.2 og.module \og_is_group_type()
  4. 5.3 og.module \og_is_group_type()
  5. 5.7 og.module \og_is_group_type()
  6. 6.2 og.module \og_is_group_type()
  7. 6 og.module \og_is_group_type()
  8. 7.2 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()
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_entity in ./og.module
Return all the enteties that are a group.
og_ui_form_node_type_form_alter in og_ui/og_ui.module
Implement hook_form_FORM_ID_alter().
og_ui_og_migrate_upgrade_group_visibility in og_ui/plugins/og_migrate/upgrade_group_visibility.inc
OG Migrate callback; Upgrade user subscription to groups.

... See full list

File

./og.module, line 2061
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);
}