You are here

function og_is_group_post_type in Organic groups 6.2

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. 5.7 og.module \og_is_group_post_type()
  5. 6 og.module \og_is_group_post_type()

Check if the node type is a group post.

Parameters

$type: Node type machine name.

Return value

TRUE if node type can be posted into a group.

12 calls to og_is_group_post_type()
og_access_alter_nongroup_form in modules/og_access/og_access.module
og_access_nodeapi in modules/og_access/og_access.module
Implementation of hook_nodeapi().
og_content_extra_fields in ./og.module
Implementation of hook_content_extra_fields.
og_determine_context_get_group in ./og.module
Get an appropriate group node to be set as the group context.
og_devel_generate in ./og.module
Facilitate random group creation for Devel Generate.

... See full list

File

./og.module, line 2478
Code for the Organic Groups module.

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