Commit 2f9b8e79 authored by ccarigna's avatar ccarigna
Browse files

Updated views and context

parent eb61eac5
......@@ -27,23 +27,17 @@ function uw_ct_event_context_default_contexts() {
$context->reactions = array(
'block' => array(
'blocks' => array(
'views-calendar-block_2' => array(
'module' => 'views',
'delta' => 'calendar-block_2',
'uw_ct_event-events_by_date' => array(
'module' => 'uw_ct_event',
'delta' => 'events_by_date',
'region' => 'sidebar_second',
'weight' => '-10',
'weight' => '-23',
),
'views-event_category_blocks-block' => array(
'module' => 'views',
'delta' => 'event_category_blocks-block',
'region' => 'sidebar_second',
'weight' => '-9',
),
'uw_ct_event-events_by_date' => array(
'module' => 'uw_ct_event',
'delta' => 'events_by_date',
'region' => 'sidebar_second',
'weight' => '-8',
'weight' => '-22',
),
),
),
......@@ -57,4 +51,4 @@ function uw_ct_event_context_default_contexts() {
$export['event_categories'] = $context;
return $export;
}
}
\ No newline at end of file
......@@ -285,6 +285,7 @@ function uw_ct_event_page_build() {
}
break;
/*
case 'events':
if (isset($path[1])) {
$breadcrumb = drupal_get_breadcrumb();
......@@ -306,6 +307,7 @@ function uw_ct_event_page_build() {
drupal_set_breadcrumb($breadcrumb);
}
break;
// */
}
}
......
......@@ -154,10 +154,17 @@ function uw_ct_event_views_default_views() {
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['query']['options']['query_comment'] = FALSE;
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '25';
$handler->display->display_options['pager']['type'] = 'date_views_pager';
$handler->display->display_options['pager']['options']['link_format'] = 'clean';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['row_plugin'] = 'fields';
$handler->display->display_options['row_options']['hide_empty'] = 0;
$handler->display->display_options['row_options']['default_field_elements'] = 0;
/* No results behavior: Global: Text area */
$handler->display->display_options['empty']['area']['id'] = 'area';
$handler->display->display_options['empty']['area']['table'] = 'views';
$handler->display->display_options['empty']['area']['field'] = 'area';
$handler->display->display_options['empty']['area']['empty'] = FALSE;
/* Field: Content: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
......@@ -166,20 +173,27 @@ function uw_ct_event_views_default_views() {
$handler->display->display_options['fields']['title']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['title']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['title']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['title']['alter']['external'] = 0;
$handler->display->display_options['fields']['title']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['title']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['title']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = 0;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = 0;
$handler->display->display_options['fields']['title']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['title']['alter']['trim'] = 0;
$handler->display->display_options['fields']['title']['alter']['html'] = 0;
$handler->display->display_options['fields']['title']['element_type'] = 'h2';
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['title']['element_default_classes'] = 0;
$handler->display->display_options['fields']['title']['hide_empty'] = 0;
$handler->display->display_options['fields']['title']['empty_zero'] = 0;
$handler->display->display_options['fields']['title']['hide_alter_empty'] = 0;
$handler->display->display_options['fields']['title']['link_to_node'] = 1;
/* Field: Content: Date and time */
$handler->display->display_options['fields']['field_event_date']['id'] = 'field_event_date';
$handler->display->display_options['fields']['field_event_date']['table'] = 'field_data_field_event_date';
$handler->display->display_options['fields']['field_event_date']['field'] = 'field_event_date';
$handler->display->display_options['fields']['field_event_date']['label'] = '';
$handler->display->display_options['fields']['field_event_date']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_event_date']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_event_date']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['field_event_date']['alter']['absolute'] = 0;
......@@ -192,14 +206,16 @@ function uw_ct_event_views_default_views() {
$handler->display->display_options['fields']['field_event_date']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['field_event_date']['alter']['trim'] = 0;
$handler->display->display_options['fields']['field_event_date']['alter']['html'] = 0;
$handler->display->display_options['fields']['field_event_date']['element_type'] = 'div';
$handler->display->display_options['fields']['field_event_date']['element_class'] = 'event-date';
$handler->display->display_options['fields']['field_event_date']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_event_date']['element_default_classes'] = 1;
$handler->display->display_options['fields']['field_event_date']['element_default_classes'] = 0;
$handler->display->display_options['fields']['field_event_date']['hide_empty'] = 0;
$handler->display->display_options['fields']['field_event_date']['empty_zero'] = 0;
$handler->display->display_options['fields']['field_event_date']['hide_alter_empty'] = 0;
$handler->display->display_options['fields']['field_event_date']['settings'] = array(
'format_type' => 'long_date_only',
'fromto' => 'value',
'format_type' => 'long',
'fromto' => 'both',
'multiple_number' => '1',
'multiple_from' => '',
'multiple_to' => '',
......@@ -210,102 +226,6 @@ function uw_ct_event_views_default_views() {
$handler->display->display_options['fields']['field_event_date']['delta_reversed'] = 0;
$handler->display->display_options['fields']['field_event_date']['multi_type'] = 'ul';
$handler->display->display_options['fields']['field_event_date']['field_api_classes'] = 0;
/* Field: Event start time */
$handler->display->display_options['fields']['field_event_date_1']['id'] = 'field_event_date_1';
$handler->display->display_options['fields']['field_event_date_1']['table'] = 'field_data_field_event_date';
$handler->display->display_options['fields']['field_event_date_1']['field'] = 'field_event_date';
$handler->display->display_options['fields']['field_event_date_1']['ui_name'] = 'Event start time';
$handler->display->display_options['fields']['field_event_date_1']['label'] = '';
$handler->display->display_options['fields']['field_event_date_1']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_event_date_1']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['alter']['external'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['field_event_date_1']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['field_event_date_1']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['alter']['trim'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['alter']['html'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_event_date_1']['element_default_classes'] = 1;
$handler->display->display_options['fields']['field_event_date_1']['hide_empty'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['empty_zero'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['hide_alter_empty'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['settings'] = array(
'format_type' => 'time_only',
'fromto' => 'value',
'multiple_number' => '1',
'multiple_from' => '',
'multiple_to' => '',
'show_repeat_rule' => 'hide',
);
$handler->display->display_options['fields']['field_event_date_1']['group_rows'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['delta_offset'] = '0';
$handler->display->display_options['fields']['field_event_date_1']['delta_reversed'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['multi_type'] = 'ul';
$handler->display->display_options['fields']['field_event_date_1']['field_api_classes'] = 0;
/* Field: Event end time */
$handler->display->display_options['fields']['field_event_date_2']['id'] = 'field_event_date_2';
$handler->display->display_options['fields']['field_event_date_2']['table'] = 'field_data_field_event_date';
$handler->display->display_options['fields']['field_event_date_2']['field'] = 'field_event_date';
$handler->display->display_options['fields']['field_event_date_2']['ui_name'] = 'Event end time';
$handler->display->display_options['fields']['field_event_date_2']['label'] = '';
$handler->display->display_options['fields']['field_event_date_2']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_event_date_2']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['alter']['external'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['field_event_date_2']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['field_event_date_2']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['alter']['trim'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['alter']['html'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_event_date_2']['element_default_classes'] = 1;
$handler->display->display_options['fields']['field_event_date_2']['hide_empty'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['empty_zero'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['hide_alter_empty'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['settings'] = array(
'format_type' => 'time_only',
'fromto' => 'value2',
'multiple_number' => '1',
'multiple_from' => '',
'multiple_to' => '',
'show_repeat_rule' => 'hide',
);
$handler->display->display_options['fields']['field_event_date_2']['group_rows'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['delta_offset'] = '0';
$handler->display->display_options['fields']['field_event_date_2']['delta_reversed'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['multi_type'] = 'ul';
$handler->display->display_options['fields']['field_event_date_2']['field_api_classes'] = 0;
/* Field: Global: Custom text */
$handler->display->display_options['fields']['nothing']['id'] = 'nothing';
$handler->display->display_options['fields']['nothing']['table'] = 'views';
$handler->display->display_options['fields']['nothing']['field'] = 'nothing';
$handler->display->display_options['fields']['nothing']['label'] = '';
$handler->display->display_options['fields']['nothing']['alter']['text'] = '[field_event_date] from [field_event_date_1] to [field_event_date_2]';
$handler->display->display_options['fields']['nothing']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['nothing']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['nothing']['alter']['external'] = 0;
$handler->display->display_options['fields']['nothing']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['nothing']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['nothing']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['nothing']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['nothing']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['nothing']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['nothing']['alter']['trim'] = 0;
$handler->display->display_options['fields']['nothing']['alter']['html'] = 0;
$handler->display->display_options['fields']['nothing']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['nothing']['element_default_classes'] = 1;
$handler->display->display_options['fields']['nothing']['hide_empty'] = 0;
$handler->display->display_options['fields']['nothing']['empty_zero'] = 0;
$handler->display->display_options['fields']['nothing']['hide_alter_empty'] = 0;
/* Field: Content: Body */
$handler->display->display_options['fields']['body']['id'] = 'body';
$handler->display->display_options['fields']['body']['table'] = 'field_data_body';
......@@ -323,39 +243,18 @@ function uw_ct_event_views_default_views() {
$handler->display->display_options['fields']['body']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['body']['alter']['trim'] = 0;
$handler->display->display_options['fields']['body']['alter']['html'] = 0;
$handler->display->display_options['fields']['body']['element_type'] = 'div';
$handler->display->display_options['fields']['body']['element_class'] = 'event-summary';
$handler->display->display_options['fields']['body']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['body']['element_default_classes'] = 1;
$handler->display->display_options['fields']['body']['element_default_classes'] = 0;
$handler->display->display_options['fields']['body']['hide_empty'] = 0;
$handler->display->display_options['fields']['body']['empty_zero'] = 0;
$handler->display->display_options['fields']['body']['hide_alter_empty'] = 0;
$handler->display->display_options['fields']['body']['type'] = 'text_trimmed';
$handler->display->display_options['fields']['body']['type'] = 'text_summary_or_trimmed';
$handler->display->display_options['fields']['body']['settings'] = array(
'trim_length' => '300',
);
$handler->display->display_options['fields']['body']['field_api_classes'] = 0;
/* Field: Content: Link */
$handler->display->display_options['fields']['view_node']['id'] = 'view_node';
$handler->display->display_options['fields']['view_node']['table'] = 'node';
$handler->display->display_options['fields']['view_node']['field'] = 'view_node';
$handler->display->display_options['fields']['view_node']['label'] = '';
$handler->display->display_options['fields']['view_node']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['view_node']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['view_node']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['view_node']['alter']['external'] = 0;
$handler->display->display_options['fields']['view_node']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['view_node']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['view_node']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['view_node']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['view_node']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['view_node']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['view_node']['alter']['trim'] = 0;
$handler->display->display_options['fields']['view_node']['alter']['html'] = 0;
$handler->display->display_options['fields']['view_node']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['view_node']['element_default_classes'] = 1;
$handler->display->display_options['fields']['view_node']['hide_empty'] = 0;
$handler->display->display_options['fields']['view_node']['empty_zero'] = 0;
$handler->display->display_options['fields']['view_node']['hide_alter_empty'] = 0;
$handler->display->display_options['fields']['view_node']['text'] = 'Read more';
/* Sort criterion: Content: Date and time - start date (field_event_date) */
$handler->display->display_options['sorts']['field_event_date_value']['id'] = 'field_event_date_value';
$handler->display->display_options['sorts']['field_event_date_value']['table'] = 'field_data_field_event_date';
......@@ -384,7 +283,8 @@ function uw_ct_event_views_default_views() {
$handler = $view->new_display('page', 'Events - List', 'page');
$handler->display->display_options['defaults']['group_by'] = FALSE;
$handler->display->display_options['defaults']['pager'] = FALSE;
$handler->display->display_options['pager']['type'] = 'none';
$handler->display->display_options['pager']['type'] = 'some';
$handler->display->display_options['pager']['options']['items_per_page'] = '5';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Field: Content: Title */
......@@ -395,20 +295,27 @@ function uw_ct_event_views_default_views() {
$handler->display->display_options['fields']['title']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['title']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['title']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['title']['alter']['external'] = 0;
$handler->display->display_options['fields']['title']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['title']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['title']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = 0;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = 0;
$handler->display->display_options['fields']['title']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['title']['alter']['trim'] = 0;
$handler->display->display_options['fields']['title']['alter']['html'] = 0;
$handler->display->display_options['fields']['title']['element_type'] = 'h2';
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['title']['element_default_classes'] = 0;
$handler->display->display_options['fields']['title']['hide_empty'] = 0;
$handler->display->display_options['fields']['title']['empty_zero'] = 0;
$handler->display->display_options['fields']['title']['hide_alter_empty'] = 0;
$handler->display->display_options['fields']['title']['link_to_node'] = 1;
/* Field: Content: Date and time */
$handler->display->display_options['fields']['field_event_date']['id'] = 'field_event_date';
$handler->display->display_options['fields']['field_event_date']['table'] = 'field_data_field_event_date';
$handler->display->display_options['fields']['field_event_date']['field'] = 'field_event_date';
$handler->display->display_options['fields']['field_event_date']['label'] = '';
$handler->display->display_options['fields']['field_event_date']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_event_date']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_event_date']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['field_event_date']['alter']['absolute'] = 0;
......@@ -421,14 +328,16 @@ function uw_ct_event_views_default_views() {
$handler->display->display_options['fields']['field_event_date']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['field_event_date']['alter']['trim'] = 0;
$handler->display->display_options['fields']['field_event_date']['alter']['html'] = 0;
$handler->display->display_options['fields']['field_event_date']['element_type'] = 'div';
$handler->display->display_options['fields']['field_event_date']['element_class'] = 'event-date';
$handler->display->display_options['fields']['field_event_date']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_event_date']['element_default_classes'] = 1;
$handler->display->display_options['fields']['field_event_date']['element_default_classes'] = 0;
$handler->display->display_options['fields']['field_event_date']['hide_empty'] = 0;
$handler->display->display_options['fields']['field_event_date']['empty_zero'] = 0;
$handler->display->display_options['fields']['field_event_date']['hide_alter_empty'] = 0;
$handler->display->display_options['fields']['field_event_date']['settings'] = array(
'format_type' => 'long_date_only',
'fromto' => 'value',
'format_type' => 'long',
'fromto' => 'both',
'multiple_number' => '1',
'multiple_from' => '',
'multiple_to' => '',
......@@ -439,102 +348,6 @@ function uw_ct_event_views_default_views() {
$handler->display->display_options['fields']['field_event_date']['delta_reversed'] = 0;
$handler->display->display_options['fields']['field_event_date']['multi_type'] = 'ul';
$handler->display->display_options['fields']['field_event_date']['field_api_classes'] = 0;
/* Field: Event start time */
$handler->display->display_options['fields']['field_event_date_1']['id'] = 'field_event_date_1';
$handler->display->display_options['fields']['field_event_date_1']['table'] = 'field_data_field_event_date';
$handler->display->display_options['fields']['field_event_date_1']['field'] = 'field_event_date';
$handler->display->display_options['fields']['field_event_date_1']['ui_name'] = 'Event start time';
$handler->display->display_options['fields']['field_event_date_1']['label'] = '';
$handler->display->display_options['fields']['field_event_date_1']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_event_date_1']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['alter']['external'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['field_event_date_1']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['field_event_date_1']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['alter']['trim'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['alter']['html'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_event_date_1']['element_default_classes'] = 1;
$handler->display->display_options['fields']['field_event_date_1']['hide_empty'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['empty_zero'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['hide_alter_empty'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['settings'] = array(
'format_type' => 'time_only',
'fromto' => 'value',
'multiple_number' => '1',
'multiple_from' => '',
'multiple_to' => '',
'show_repeat_rule' => 'hide',
);
$handler->display->display_options['fields']['field_event_date_1']['group_rows'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['delta_offset'] = '0';
$handler->display->display_options['fields']['field_event_date_1']['delta_reversed'] = 0;
$handler->display->display_options['fields']['field_event_date_1']['multi_type'] = 'ul';
$handler->display->display_options['fields']['field_event_date_1']['field_api_classes'] = 0;
/* Field: Event end time */
$handler->display->display_options['fields']['field_event_date_2']['id'] = 'field_event_date_2';
$handler->display->display_options['fields']['field_event_date_2']['table'] = 'field_data_field_event_date';
$handler->display->display_options['fields']['field_event_date_2']['field'] = 'field_event_date';
$handler->display->display_options['fields']['field_event_date_2']['ui_name'] = 'Event end time';
$handler->display->display_options['fields']['field_event_date_2']['label'] = '';
$handler->display->display_options['fields']['field_event_date_2']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_event_date_2']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['alter']['external'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['field_event_date_2']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['field_event_date_2']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['alter']['trim'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['alter']['html'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_event_date_2']['element_default_classes'] = 1;
$handler->display->display_options['fields']['field_event_date_2']['hide_empty'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['empty_zero'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['hide_alter_empty'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['settings'] = array(
'format_type' => 'time_only',
'fromto' => 'value2',
'multiple_number' => '1',
'multiple_from' => '',
'multiple_to' => '',
'show_repeat_rule' => 'hide',
);
$handler->display->display_options['fields']['field_event_date_2']['group_rows'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['delta_offset'] = '0';
$handler->display->display_options['fields']['field_event_date_2']['delta_reversed'] = 0;
$handler->display->display_options['fields']['field_event_date_2']['multi_type'] = 'ul';
$handler->display->display_options['fields']['field_event_date_2']['field_api_classes'] = 0;
/* Field: Global: Custom text */
$handler->display->display_options['fields']['nothing']['id'] = 'nothing';
$handler->display->display_options['fields']['nothing']['table'] = 'views';
$handler->display->display_options['fields']['nothing']['field'] = 'nothing';
$handler->display->display_options['fields']['nothing']['label'] = '';
$handler->display->display_options['fields']['nothing']['alter']['text'] = '[field_event_date] from [field_event_date_1] to [field_event_date_2]';
$handler->display->display_options['fields']['nothing']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['nothing']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['nothing']['alter']['external'] = 0;
$handler->display->display_options['fields']['nothing']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['nothing']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['nothing']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['nothing']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['nothing']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['nothing']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['nothing']['alter']['trim'] = 0;
$handler->display->display_options['fields']['nothing']['alter']['html'] = 0;
$handler->display->display_options['fields']['nothing']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['nothing']['element_default_classes'] = 1;
$handler->display->display_options['fields']['nothing']['hide_empty'] = 0;
$handler->display->display_options['fields']['nothing']['empty_zero'] = 0;
$handler->display->display_options['fields']['nothing']['hide_alter_empty'] = 0;
/* Field: Content: Body */
$handler->display->display_options['fields']['body']['id'] = 'body';
$handler->display->display_options['fields']['body']['table'] = 'field_data_body';
......@@ -552,16 +365,40 @@ function uw_ct_event_views_default_views() {
$handler->display->display_options['fields']['body']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['body']['alter']['trim'] = 0;
$handler->display->display_options['fields']['body']['alter']['html'] = 0;
$handler->display->display_options['fields']['body']['element_type'] = 'div';
$handler->display->display_options['fields']['body']['element_class'] = 'event-summary';
$handler->display->display_options['fields']['body']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['body']['element_default_classes'] = 1;
$handler->display->display_options['fields']['body']['element_default_classes'] = 0;
$handler->display->display_options['fields']['body']['hide_empty'] = 0;
$handler->display->display_options['fields']['body']['empty_zero'] = 0;
$handler->display->display_options['fields']['body']['hide_alter_empty'] = 0;
$handler->display->display_options['fields']['body']['type'] = 'text_trimmed';
$handler->display->display_options['fields']['body']['type'] = 'text_summary_or_trimmed';
$handler->display->display_options['fields']['body']['settings'] = array(
'trim_length' => '300',
);
$handler->display->display_options['fields']['body']['field_api_classes'] = 0;
$handler->display->display_options['defaults']['arguments'] = FALSE;
$handler->display->display_options['defaults']['filters'] = FALSE;
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 0;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
'uw_event' => 'uw_event',
);
/* Filter criterion: Content: Date and time - start date (field_event_date) */
$handler->display->display_options['filters']['field_event_date_value']['id'] = 'field_event_date_value';
$handler->display->display_options['filters']['field_event_date_value']['table'] = 'field_data_field_event_date';
$handler->display->display_options['filters']['field_event_date_value']['field'] = 'field_event_date_value';
$handler->display->display_options['filters']['field_event_date_value']['operator'] = '>=';
$handler->display->display_options['filters']['field_event_date_value']['default_date'] = 'today';
$handler->display->display_options['path'] = 'events';
$handler->display->display_options['menu']['type'] = 'normal';
$handler->display->display_options['menu']['title'] = 'Events';
......@@ -572,6 +409,10 @@ function uw_ct_event_views_default_views() {
$handler = $view->new_display('page', 'Manage Events', 'page_1');
$handler->display->display_options['defaults']['group_by'] = FALSE;
$handler->display->display_options['group_by'] = TRUE;
$handler->display->display_options['defaults']['pager'] = FALSE;
$handler->display->display_options['pager']['type'] = 'some';
$handler->display->display_options['pager']['options']['items_per_page'] = '25';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['columns'] = array(
......@@ -1022,26 +863,29 @@ function uw_ct_event_views_default_views() {
/* Display: Events - Archive */
$handler = $view->new_display('page', 'Events - Archive', 'page_3');
$handler->display->display_options['defaults']['empty'] = FALSE;
/* No results behavior: Global: Text area */
$handler->display->display_options['empty']['area']['id'] = 'area';
$handler->display->display_options['empty']['area']['table'] = 'views';
$handler->display->display_options['empty']['area']['field'] = 'area';
$handler->display->display_options['empty']['area']['empty'] = FALSE;
$handler->display->display_options['empty']['area']['content'] = 'No events scheduled.';
$handler->display->display_options['empty']['area']['format'] = 'uw_tf_standard';
$handler->display->display_options['empty']['area']['tokenize'] = 0;
$handler->display->display_options['defaults']['arguments'] = FALSE;
/* Contextual filter: Content: Date and time - start date (field_event_date) */
$handler->display->display_options['arguments']['field_event_date_value']['id'] = 'field_event_date_value';
$handler->display->display_options['arguments']['field_event_date_value']['table'] = 'field_data_field_event_date';
$handler->display->display_options['arguments']['field_event_date_value']['field'] = 'field_event_date_value';
$handler->display->display_options['arguments']['field_event_date_value']['default_argument_skip_url'] = 0;
$handler->display->display_options['arguments']['field_event_date_value']['summary']['number_of_records'] = '0';
$handler->display->display_options['arguments']['field_event_date_value']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['field_event_date_value']['summary_options']['items_per_page'] = '25';
$handler->display->display_options['arguments']['field_event_date_value']['granularity'] = 'year';
/* Contextual filter: Content: Date and time - start date (field_event_date) */
$handler->display->display_options['arguments']['field_event_date_value_1']['id'] = 'field_event_date_value_1';
$handler->display->display_options['arguments']['field_event_date_value_1']['table'] = 'field_data_field_event_date';
$handler->display->display_options['arguments']['field_event_date_value_1']['field'] = 'field_event_date_value';
$handler->display->display_options['arguments']['field_event_date_value_1']['default_argument_skip_url'] = 0;
$handler->display->display_options['arguments']['field_event_date_value_1']['summary']['number_of_records'] = '0';
$handler->display->display_options['arguments']['field_event_date_value_1']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['field_event_date_value_1']['summary_options']['items_per_page'] = '25';
/* Contextual filter: Date: Date (node) */
$handler->display->display_options['arguments']['date_argument']['id'] = 'date_argument';
$handler->display->display_options['arguments']['date_argument']['table'] = 'node';
$handler->display->display_options['arguments']['date_argument']['field'] = 'date_argument';
$handler->display->display_options['arguments']['date_argument']['title_enable'] = 1;
$handler->display->display_options['arguments']['date_argument']['title'] = 'Archive';
$handler->display->display_options['arguments']['date_argument']['default_argument_skip_url'] = 0;
$handler->display->display_options['arguments']['date_argument']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['date_argument']['date_fields'] = array(
'field_data_field_event_date.field_event_date_value' => 'field_data_field_event_date.field_event_date_value',
);
$handler->display->display_options['path'] = 'events/archive';
$export['events'] = $view;
return $export;
}
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment