commons_subgroups.context.inc in Drupal Commons 6.2
File
modules/features/commons_subgroups/commons_subgroups.context.inc
View source
<?php
function commons_subgroups_context_default_contexts() {
$export = array();
$context = new stdClass();
$context->disabled = FALSE;
$context->api_version = 3;
$context->name = 'group-home-tree';
$context->description = 'The group hierarchy tree';
$context->tag = 'Group';
$context->conditions = array(
'node' => array(
'values' => array(
'group' => 'group',
),
'options' => array(
'node_form' => '0',
),
),
);
$context->reactions = array(
'block' => array(
'blocks' => array(
'og_subgroups-hierarchy' => array(
'module' => 'og_subgroups',
'delta' => 'hierarchy',
'region' => 'sidebar_last',
'weight' => 2,
),
),
),
);
$context->condition_mode = 0;
t('Group');
t('The group hierarchy tree');
$export['group-home-tree'] = $context;
return $export;
}