function og_is_group_type in Organic groups 6
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()
- 7.2 og.module \og_is_group_type()
- 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
24 calls to og_is_group_type()
- og_access_content_extra_fields in modules/
og_access/ og_access.module - Implementation of hook_content_extra_fields.
- og_access_form_alter in modules/
og_access/ og_access.module - Implementation of hook_form_alter().
- og_access_node_access_records in modules/
og_access/ og_access.module - Implementation of hook_node_access_records.
- og_content_extra_fields in ./
og.module - Implementation of hook_content_extra_fields.
- og_determine_context_get_group in ./
og.module - Helper function; Get an appropriate group node to be set as the group conext.
File
- ./
og.module, line 2380
Code
function og_is_group_type($type) {
return variable_get('og_content_type_usage_' . $type, 'omitted') == 'group';
}