debut_media.context.inc 971 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * @file
  4. * debut_media.context.inc
  5. */
  6. /**
  7. * Implementation of hook_context_default_contexts().
  8. */
  9. function debut_media_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 = 'media';
  15. $context->description = 'Display sidebar block and set breadcrumb.';
  16. $context->tag = '';
  17. $context->conditions = array(
  18. 'path' => array(
  19. 'values' => array(
  20. 'media/*' => 'file/*',
  21. '~media/images' => '~file/images',
  22. '~media/video' => '~file/video',
  23. ),
  24. ),
  25. );
  26. $context->reactions = array(
  27. 'breadcrumb' => 'file',
  28. 'menu' => 'file',
  29. );
  30. $context->condition_mode = 0;
  31. // Translatables
  32. // Included for use with string extractors like potx.
  33. t('Display sidebar block and set breadcrumb.');
  34. $export['media'] = $context;
  35. return $export;
  36. }