function og_is_group_post_type in Organic groups 5.8
Same name and namespace in other branches
- 5 og.module \og_is_group_post_type()
- 5.3 og.module \og_is_group_post_type()
- 5.7 og.module \og_is_group_post_type()
- 6.2 og.module \og_is_group_post_type()
- 6 og.module \og_is_group_post_type()
4 calls to og_is_group_post_type()
- og_access_alter_nongroup_form in ./
og_access.module - og_form_alter in ./
og.module - og_nodeapi in ./
og.module - Implementation of hook_nodeapi().
- og_save_ancestry in ./
og.module
File
- ./
og.module, line 2053
Code
function og_is_group_post_type($type) {
$usage = variable_get('og_content_type_usage_' . $type, 'omitted');
return strpos($usage, 'group_post') !== FALSE ? TRUE : FALSE;
}