You are here

function og_is_group_type in Organic groups 5.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. 6.2 og.module \og_is_group_type()
  6. 6 og.module \og_is_group_type()
  7. 7.2 og.module \og_is_group_type()
  8. 7 og.module \og_is_group_type()

API function for determining whether a given node type has been designated by admin to behave as a group node (i.e. a container).

Parameters

string $type:

Return value

boolean

18 calls to og_is_group_type()
og_access_form_alter in ./og_access.module
Implementation of hook_form_alter().
og_access_node_access_records in ./og_access.module
Implementation of hook_node_access_records.
og_form_alter in ./og.module
og_get_node_groups in ./og.module
og_get_types in ./og.module

... See full list

File

./og.module, line 2357

Code

function og_is_group_type($type) {
  return variable_get('og_content_type_usage_' . $type, 'omitted') == 'group' ? TRUE : FALSE;
}