uw_ct_event.context.inc 3.64 KB
Newer Older
1
<?php
Liam Morland's avatar
Liam Morland committed
2

3
4
5
6
7
8
/**
 * @file
 * uw_ct_event.context.inc
 */

/**
9
 * Implements hook_context_default_contexts().
10
11
12
13
 */
function uw_ct_event_context_default_contexts() {
  $export = array();

kolafson's avatar
kolafson committed
14
  $context = new stdClass();
ccarigna's avatar
ccarigna committed
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  $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(
30
31
32
        'uw_ct_event-front_page' => array(
          'module' => 'uw_ct_event',
          'delta' => 'front_page',
ccarigna's avatar
ccarigna committed
33
34
35
36
37
38
39
40
41
42
43
          'region' => 'content',
          'weight' => '9',
        ),
      ),
    ),
  );
  $context->condition_mode = 0;

  // Translatables
  // Included for use with string extractors like potx.
  t('Content');
Liam Morland's avatar
Liam Morland committed
44
  t("Displays event block on a site's front page.");
ccarigna's avatar
ccarigna committed
45
46
  $export['event-front_page'] = $context;

kolafson's avatar
kolafson committed
47
  $context = new stdClass();
48
49
  $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
  $context->api_version = 3;
50
  $context->name = 'event_categories';
51
52
53
54
55
56
57
58
59
60
61
62
63
  $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(
l26yan's avatar
l26yan committed
64
65
66
67
68
69
        'views-events_with_calendar-block_1' => array(
          'module' => 'views',
          'delta' => 'events_with_calendar-block_1',
          'region' => 'sidebar_second',
          'weight' => '-39',
        ),
70
        'uw_ct_event-events_by_audience' => array(
l26yan's avatar
l26yan committed
71
          'module' => 'uw_ct_event',
72
          'delta' => 'events_by_audience',
l26yan's avatar
l26yan committed
73
          'region' => 'sidebar_second',
l26yan's avatar
l26yan committed
74
          'weight' => '-37',
l26yan's avatar
l26yan committed
75
        ),
76
77
78
79
        'views-event_type_block-events_by_type' => array(
          'module' => 'views',
          'delta' => 'event_type_block-events_by_type',
          'region' => 'sidebar_second',
l26yan's avatar
l26yan committed
80
          'weight' => '-36',
81
        ),
82
83
84
85
86
87
88
89
90
      ),
    ),
  );
  $context->condition_mode = 0;

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

l26yan's avatar
l26yan committed
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
  $context = new stdClass();
  $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
  $context->api_version = 3;
  $context->name = 'event_feed_ics';
  $context->description = 'Displays event feed and ics block';
  $context->tag = 'Content';
  $context->conditions = array(
    'path' => array(
      'values' => array(
        'events' => 'events',
      ),
    ),
  );
  $context->reactions = array(
    'block' => array(
      'blocks' => array(
        'uw_ct_event-event-calendar-block-id' => array(
          'module' => 'uw_ct_event',
          'delta' => 'event-calendar-block-id',
          'region' => 'sidebar_second',
          'weight' => '-41',
        ),
        'uw_ct_event-events_public_feed' => array(
          'module' => 'uw_ct_event',
          'delta' => 'events_public_feed',
          'region' => 'sidebar_second',
          'weight' => '-40',
        ),
      ),
    ),
  );
  $context->condition_mode = 0;

  // Translatables
  // Included for use with string extractors like potx.
  t('Content');
  t('Displays event feed and ics block');
  $export['event_feed_ics'] = $context;

132
  return $export;
133
}