function og_is_group_type in Organic groups 5.2
Same name and namespace in other branches
- 5.8 og.module \og_is_group_type()
- 5 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.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
8 calls to og_is_group_type()
- og_form_alter in ./
og.module - og_get_node_groups in ./
og.module - og_menu in ./
og.module - og_migrate_type_basic_14 in ./
og.install - og_nodeapi in ./
og.module - Implementation of hook_nodeapi().
File
- ./
og.module, line 157
Code
function og_is_group_type($type) {
return in_array($type, variable_get('og_node_types', array(
'og',
)));
}