popsu-d7/sites/default/modules/features/popsu_colloques/popsu_colloques.context.inc
Bachir Soussi Chiadmi 1bc61b12ad first import
2015-04-08 11:40:19 +02:00

57 lines
1.4 KiB
PHP

<?php
/**
* @file
* popsu_colloques.context.inc
*/
/**
* Implements hook_context_default_contexts().
*/
function popsu_colloques_context_default_contexts() {
$export = array();
$context = new stdClass();
$context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
$context->api_version = 3;
$context->name = 'popsu-colloque-node';
$context->description = 'Contexte d\'un noeud de type Colloque (feature)';
$context->tag = 'colloques-feature';
$context->conditions = array(
'node' => array(
'values' => array(
'popsu_colloque' => 'popsu_colloque',
),
'options' => array(
'node_form' => '0',
),
),
);
$context->reactions = array(
'block' => array(
'blocks' => array(
'menu_block-1' => array(
'module' => 'menu_block',
'delta' => '1',
'region' => 'sidebar_first',
'weight' => '-10',
),
'menu_block-5' => array(
'module' => 'menu_block',
'delta' => '5',
'region' => 'sidebar_first',
'weight' => '-10',
),
),
),
);
$context->condition_mode = 0;
// Translatables
// Included for use with string extractors like potx.
t('Contexte d\'un noeud de type Colloque (feature)');
t('colloques-feature');
$export['popsu-colloque-node'] = $context;
return $export;
}