popsu_projets.context.inc 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. /**
  3. * @file
  4. * popsu_projets.context.inc
  5. */
  6. /**
  7. * Implements hook_context_default_contexts().
  8. */
  9. function popsu_projets_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-projet-node';
  15. $context->description = 'Contexte d\'un noeud de type Projet (feature)';
  16. $context->tag = 'projets-feature';
  17. $context->conditions = array(
  18. 'node' => array(
  19. 'values' => array(
  20. 'popsu_projet' => 'popsu_projet',
  21. ),
  22. 'options' => array(
  23. 'node_form' => '0',
  24. ),
  25. ),
  26. );
  27. $context->reactions = array(
  28. 'block' => array(
  29. 'blocks' => array(
  30. 'menu_block-3' => array(
  31. 'module' => 'menu_block',
  32. 'delta' => '3',
  33. 'region' => 'sidebar_first',
  34. 'weight' => '-23',
  35. ),
  36. 'boxes-popsu_menu_trigger' => array(
  37. 'module' => 'boxes',
  38. 'delta' => 'popsu_menu_trigger',
  39. 'region' => 'sidebar_first',
  40. 'weight' => '-22',
  41. ),
  42. 'menu_block-1' => array(
  43. 'module' => 'menu_block',
  44. 'delta' => '1',
  45. 'region' => 'sidebar_first',
  46. 'weight' => '-21',
  47. ),
  48. 'menu_block-5' => array(
  49. 'module' => 'menu_block',
  50. 'delta' => '5',
  51. 'region' => 'sidebar_first',
  52. 'weight' => '-20',
  53. ),
  54. ),
  55. ),
  56. 'theme_html' => array(
  57. 'class' => 'sidebar-double',
  58. ),
  59. );
  60. $context->condition_mode = 0;
  61. // Translatables
  62. // Included for use with string extractors like potx.
  63. t('Contexte d\'un noeud de type Projet (feature)');
  64. t('projets-feature');
  65. $export['popsu-projet-node'] = $context;
  66. return $export;
  67. }