popsu_projets_europe.context.inc 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /**
  3. * @file
  4. * popsu_projets_europe.context.inc
  5. */
  6. /**
  7. * Implements hook_context_default_contexts().
  8. */
  9. function popsu_projets_europe_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-projets-europe-node';
  15. $context->description = 'Contexte d\'un noeud de type Projet POPSU Europe (feature)';
  16. $context->tag = 'projets-europe-feature';
  17. $context->conditions = array(
  18. 'node' => array(
  19. 'values' => array(
  20. 'popsu_projet_europe' => 'popsu_projet_europe',
  21. ),
  22. 'options' => array(
  23. 'node_form' => '0',
  24. ),
  25. ),
  26. );
  27. $context->reactions = array(
  28. 'block' => array(
  29. 'blocks' => array(
  30. 'menu_block-6' => array(
  31. 'module' => 'menu_block',
  32. 'delta' => '6',
  33. 'region' => 'sidebar_first',
  34. 'weight' => '-10',
  35. ),
  36. ),
  37. ),
  38. 'theme_html' => array(
  39. 'class' => 'context-popsu-europe',
  40. ),
  41. );
  42. $context->condition_mode = 0;
  43. // Translatables
  44. // Included for use with string extractors like potx.
  45. t('Contexte d\'un noeud de type Projet POPSU Europe (feature)');
  46. t('projets-europe-feature');
  47. $export['popsu-projets-europe-node'] = $context;
  48. return $export;
  49. }