function og_subgroups_include in Subgroups for Organic groups 6
Include .inc files Similar to ctools_include()
Parameters
$file: The base file name to be included.
$module: Optional module containing the include.
$dir: Optional subdirectory containing the include file.
36 calls to og_subgroups_include()
- 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_context_condition_has_children::execute in modules/
og_subgroups_context/ plugins/ og_subgroups_context_condition_has_children.inc - Execute the plugin
- og_subgroups_context_condition_has_parent::execute in modules/
og_subgroups_context/ plugins/ og_subgroups_context_condition_has_parent.inc - Execute the plugin
- og_subgroups_context_condition_has_siblings::execute in modules/
og_subgroups_context/ plugins/ og_subgroups_context_condition_has_siblings.inc - Execute the plugin
- og_subgroups_context_condition_node_below_og::condition_values in modules/
og_subgroups_context/ plugins/ og_subgroups_context_condition_node_below_og.inc - Condition values
File
- ./
og_subgroups.module, line 515 - Maintains a hierarchy of groups created by the orgainc groups module.
Code
function og_subgroups_include($file, $module = 'og_subgroups', $dir = 'includes') {
static $used = array();
$dir = '/' . ($dir ? $dir . '/' : '');
if (!isset($used[$module][$dir][$file])) {
require_once './' . drupal_get_path('module', $module) . "{$dir}{$file}.inc";
$used[$module][$dir][$file] = TRUE;
}
}