social_links.context.inc 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * @file
  4. * social_links.context.inc
  5. */
  6. /**
  7. * Implements hook_context_default_contexts().
  8. */
  9. function social_links_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 = 'social_links';
  15. $context->description = '';
  16. $context->tag = 'sitewide';
  17. $context->conditions = array(
  18. 'sitewide' => array(
  19. 'values' => array(
  20. 1 => 1,
  21. ),
  22. ),
  23. );
  24. $context->reactions = array(
  25. 'block' => array(
  26. 'blocks' => array(
  27. 'social_media_links-social-media-links' => array(
  28. 'module' => 'social_media_links',
  29. 'delta' => 'social-media-links',
  30. 'region' => 'headerblock_left',
  31. 'weight' => '-10',
  32. ),
  33. ),
  34. ),
  35. );
  36. $context->condition_mode = 1;
  37. // Translatables
  38. // Included for use with string extractors like potx.
  39. t('sitewide');
  40. $export['social_links'] = $context;
  41. return $export;
  42. }