You are here

function og_subgroups_is_subgroup_type in Subgroups for Organic groups 6

Determine if a node type has subgroups enabled

This currently is not in use!

Parameters

$type: The node type to check

Return value

Boolean indication or whether or not subgroups are enabled for the given type

3 calls to og_subgroups_is_subgroup_type()
og_subgroups_can_edit_hierarchy in ./og_subgroups.module
Access handler to check if the current user can edit the hierarchy of a given group, or group type
og_subgroups_views_handler_argument_parent::default_roots_only in modules/og_subgroups_views/includes/og_subgroups_views_handler_argument_parent.inc
_og_subgroups_group_select_options_without_family in includes/form.inc
Helper function to generate a list of select options of groups that do not have a hierarchy, meaning they are not in a family

File

./og_subgroups.module, line 326
Maintains a hierarchy of groups created by the orgainc groups module.

Code

function og_subgroups_is_subgroup_type($type) {
  return variable_get("og_subgroups_node_type_enabled_{$type}", 0);
}