uw_ct_event.context.inc 2.7 KB
Newer Older
l26yan's avatar
l26yan committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php
/**
 * @file
 * uw_ct_event.context.inc
 */

/**
 * Implements hook_context_default_contexts().
 */
function uw_ct_event_context_default_contexts() {
  $export = array();

  $context = new stdClass();
  $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
  $context->api_version = 3;
  $context->name = 'event-front_page';
  $context->description = 'Displays event block on a site\'s front page.';
  $context->tag = 'Content';
  $context->conditions = array(
    'path' => array(
      'values' => array(
        '<front>' => '<front>',
      ),
    ),
  );
  $context->reactions = array(
    'block' => array(
      'blocks' => array(
        'uw_ct_event-front_page' => array(
          'module' => 'uw_ct_event',
          'delta' => 'front_page',
          'region' => 'content',
          'weight' => '9',
        ),
      ),
    ),
  );
  $context->condition_mode = 0;

  // Translatables
  // Included for use with string extractors like potx.
  t('Content');
  t('Displays event block on a site\'s front page.');
  $export['event-front_page'] = $context;

  $context = new stdClass();
  $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
  $context->api_version = 3;
  $context->name = 'event_categories';
  $context->description = 'Displays event categories (taxonomy) blocks.';
  $context->tag = 'Content';
  $context->conditions = array(
    'path' => array(
      'values' => array(
        'events' => 'events',
        'events/*' => 'events/*',
      ),
    ),
  );
  $context->reactions = array(
    'block' => array(
      'blocks' => array(
        'uw_ct_event-events_public_feed' => array(
          'module' => 'uw_ct_event',
          'delta' => 'events_public_feed',
          'region' => 'sidebar_second',
          'weight' => '-28',
        ),
        'views-event_category_blocks-block' => array(
          'module' => 'views',
          'delta' => 'event_category_blocks-block',
          'region' => 'sidebar_second',
          'weight' => '-27',
        ),
        'uw_ct_event-events_by_date' => array(
          'module' => 'uw_ct_event',
          'delta' => 'events_by_date',
          'region' => 'sidebar_second',
          'weight' => '-25',
        ),
        'uw_ct_event-event-calendar-block-id' => array(
          'module' => 'uw_ct_event',
          'delta' => 'event-calendar-block-id',
          'region' => 'sidebar_second',
          'weight' => '-29',
        ),
      ),
    ),
  );
  $context->condition_mode = 0;

  // Translatables
  // Included for use with string extractors like potx.
  t('Content');
  t('Displays event categories (taxonomy) blocks.');
  $export['event_categories'] = $context;

  return $export;
}