popsu_colloques.context.inc 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. /**
  3. * @file
  4. * popsu_colloques.context.inc
  5. */
  6. /**
  7. * Implements hook_context_default_contexts().
  8. */
  9. function popsu_colloques_context_default_contexts() {
  10. $export = array();
  11. $context = new stdClass();
  12. $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
  13. $context->api_version = 3;
  14. $context->name = 'popsu-colloque-node';
  15. $context->description = 'Contexte d\'un noeud de type Colloque (feature)';
  16. $context->tag = 'colloques-feature';
  17. $context->conditions = array(
  18. 'node' => array(
  19. 'values' => array(
  20. 'popsu_colloque' => 'popsu_colloque',
  21. ),
  22. 'options' => array(
  23. 'node_form' => '0',
  24. ),
  25. ),
  26. );
  27. $context->reactions = array(
  28. 'block' => array(
  29. 'blocks' => array(
  30. 'menu_block-1' => array(
  31. 'module' => 'menu_block',
  32. 'delta' => '1',
  33. 'region' => 'sidebar_first',
  34. 'weight' => '-10',
  35. ),
  36. 'menu_block-5' => array(
  37. 'module' => 'menu_block',
  38. 'delta' => '5',
  39. 'region' => 'sidebar_first',
  40. 'weight' => '-10',
  41. ),
  42. ),
  43. ),
  44. );
  45. $context->condition_mode = 0;
  46. // Translatables
  47. // Included for use with string extractors like potx.
  48. t('Contexte d\'un noeud de type Colloque (feature)');
  49. t('colloques-feature');
  50. $export['popsu-colloque-node'] = $context;
  51. return $export;
  52. }