You are here

function og_is_group_post_type in Organic groups 5.7

Same name and namespace in other branches
  1. 5.8 og.module \og_is_group_post_type()
  2. 5 og.module \og_is_group_post_type()
  3. 5.3 og.module \og_is_group_post_type()
  4. 6.2 og.module \og_is_group_post_type()
  5. 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 2341

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;
}