popsu_villes.context.inc 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <?php
  2. /**
  3. * @file
  4. * popsu_villes.context.inc
  5. */
  6. /**
  7. * Implements hook_context_default_contexts().
  8. */
  9. function popsu_villes_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-villes-node';
  15. $context->description = 'Contexte d\'un noeud de type Ville POPSU1 (feature)';
  16. $context->tag = 'villes-feature';
  17. $context->conditions = array(
  18. 'node' => array(
  19. 'values' => array(
  20. 'popsu_ville' => 'popsu_ville',
  21. ),
  22. 'options' => array(
  23. 'node_form' => '0',
  24. ),
  25. ),
  26. 'node_taxonomy' => array(
  27. 'values' => array(
  28. 1 => 1,
  29. ),
  30. 'options' => array(
  31. 'node_form' => '1',
  32. ),
  33. ),
  34. );
  35. $context->reactions = array(
  36. 'block' => array(
  37. 'blocks' => array(
  38. 'menu_block-3' => array(
  39. 'module' => 'menu_block',
  40. 'delta' => '3',
  41. 'region' => 'sidebar_first',
  42. 'weight' => '-10',
  43. ),
  44. 'boxes-popsu_menu_trigger' => array(
  45. 'module' => 'boxes',
  46. 'delta' => 'popsu_menu_trigger',
  47. 'region' => 'sidebar_first',
  48. 'weight' => '-9',
  49. ),
  50. 'menu_block-1' => array(
  51. 'module' => 'menu_block',
  52. 'delta' => '1',
  53. 'region' => 'sidebar_first',
  54. 'weight' => '-6',
  55. ),
  56. ),
  57. ),
  58. 'theme_html' => array(
  59. 'class' => 'sidebar-double',
  60. ),
  61. );
  62. $context->condition_mode = 1;
  63. // Translatables
  64. // Included for use with string extractors like potx.
  65. t('Contexte d\'un noeud de type Ville POPSU1 (feature)');
  66. t('villes-feature');
  67. $export['popsu-villes-node'] = $context;
  68. $context = new stdClass();
  69. $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
  70. $context->api_version = 3;
  71. $context->name = 'popsu-villes-node-popsu2';
  72. $context->description = 'Contexte d\'un noeud de type Ville pour POPSU2 (feature)';
  73. $context->tag = 'villes-feature';
  74. $context->conditions = array(
  75. 'node' => array(
  76. 'values' => array(
  77. 'popsu_ville' => 'popsu_ville',
  78. ),
  79. 'options' => array(
  80. 'node_form' => '0',
  81. ),
  82. ),
  83. 'node_taxonomy' => array(
  84. 'values' => array(
  85. 2 => 2,
  86. ),
  87. 'options' => array(
  88. 'node_form' => '0',
  89. ),
  90. ),
  91. );
  92. $context->reactions = array(
  93. 'block' => array(
  94. 'blocks' => array(
  95. 'menu_block-4' => array(
  96. 'module' => 'menu_block',
  97. 'delta' => '4',
  98. 'region' => 'sidebar_first',
  99. 'weight' => '-24',
  100. ),
  101. 'boxes-popsu_menu_trigger' => array(
  102. 'module' => 'boxes',
  103. 'delta' => 'popsu_menu_trigger',
  104. 'region' => 'sidebar_first',
  105. 'weight' => '-23',
  106. ),
  107. 'menu_block-5' => array(
  108. 'module' => 'menu_block',
  109. 'delta' => '5',
  110. 'region' => 'sidebar_first',
  111. 'weight' => '-22',
  112. ),
  113. ),
  114. ),
  115. 'theme_html' => array(
  116. 'class' => 'sidebar-double',
  117. ),
  118. );
  119. $context->condition_mode = 1;
  120. // Translatables
  121. // Included for use with string extractors like potx.
  122. t('Contexte d\'un noeud de type Ville pour POPSU2 (feature)');
  123. t('villes-feature');
  124. $export['popsu-villes-node-popsu2'] = $context;
  125. return $export;
  126. }