popsu_pages.context.inc 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <?php
  2. /**
  3. * @file
  4. * popsu_pages.context.inc
  5. */
  6. /**
  7. * Implements hook_context_default_contexts().
  8. */
  9. function popsu_pages_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-page-europe-node';
  15. $context->description = 'Contexte d\'un noeud de type Page pour POPSU Europe (feature)';
  16. $context->tag = 'pages-europe-feature';
  17. $context->conditions = array(
  18. 'node' => array(
  19. 'values' => array(
  20. 'popsu_page' => 'popsu_page',
  21. ),
  22. 'options' => array(
  23. 'node_form' => '0',
  24. ),
  25. ),
  26. 'node_taxonomy' => array(
  27. 'values' => array(
  28. 3 => 3,
  29. ),
  30. 'options' => array(
  31. 'node_form' => '1',
  32. ),
  33. ),
  34. );
  35. $context->reactions = array(
  36. 'block' => array(
  37. 'blocks' => array(
  38. 'menu_block-6' => array(
  39. 'module' => 'menu_block',
  40. 'delta' => '6',
  41. 'region' => 'sidebar_first',
  42. 'weight' => '-10',
  43. ),
  44. ),
  45. ),
  46. );
  47. $context->condition_mode = 1;
  48. // Translatables
  49. // Included for use with string extractors like potx.
  50. t('Contexte d\'un noeud de type Page pour POPSU Europe (feature)');
  51. t('pages-europe-feature');
  52. $export['popsu-page-europe-node'] = $context;
  53. $context = new stdClass();
  54. $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
  55. $context->api_version = 3;
  56. $context->name = 'popsu-page-node';
  57. $context->description = 'Contexte d\'un noeud de type Page POPSU (feature)';
  58. $context->tag = 'pages-feature';
  59. $context->conditions = array(
  60. 'node' => array(
  61. 'values' => array(
  62. 'popsu_page' => 'popsu_page',
  63. ),
  64. 'options' => array(
  65. 'node_form' => '0',
  66. ),
  67. ),
  68. );
  69. $context->reactions = array(
  70. 'block' => array(
  71. 'blocks' => array(
  72. 'menu_block-3' => array(
  73. 'module' => 'menu_block',
  74. 'delta' => '3',
  75. 'region' => 'sidebar_first',
  76. 'weight' => '-10',
  77. ),
  78. 'menu_block-4' => array(
  79. 'module' => 'menu_block',
  80. 'delta' => '4',
  81. 'region' => 'sidebar_first',
  82. 'weight' => '-10',
  83. ),
  84. ),
  85. ),
  86. );
  87. $context->condition_mode = 0;
  88. // Translatables
  89. // Included for use with string extractors like potx.
  90. t('Contexte d\'un noeud de type Page POPSU (feature)');
  91. t('pages-feature');
  92. $export['popsu-page-node'] = $context;
  93. return $export;
  94. }