Skip to content

Commit adf226c

Browse files
authored
Merge pull request #3 from misd-service-development/smallfixes
fix past event sort order and minimum image size
2 parents c21bbc4 + 2dfc407 commit adf226c

5 files changed

+18
-4
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
Changelog
22
=========
33

4+
2.3
5+
6+
7 October 2019
7+
8+
Small fixes:
9+
1) reverse sort order for past events
10+
2) reduce minimum image size to leading image rather than carousel
11+
412
2.2
513

614
20 May 2019

cambridge_events.features.field_instance.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ function cambridge_events_field_default_field_instances() {
792792
),
793793
'max_filesize' => '',
794794
'max_resolution' => '',
795-
'min_resolution' => '885x432',
795+
'min_resolution' => '590x288',
796796
'title_field' => 0,
797797
'user_register_form' => FALSE,
798798
'wysiwyg_insert' => 0,

cambridge_events.info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name = Events
22
description = Adds an event content type and views.
33
core = 7.x
44
package = University of Cambridge
5-
version = 7.x-2.2
5+
version = 7.x-2.3
66
project = cambridge_events
77
dependencies[] = body_field_definition
88
dependencies[] = calendar

cambridge_events.strongarm.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ function cambridge_events_strongarm() {
1515
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
1616
$strongarm->api_version = 1;
1717
$strongarm->name = 'diff_enable_revisions_page_node_event';
18-
$strongarm->value = 1;
18+
$strongarm->value = 0;
1919
$export['diff_enable_revisions_page_node_event'] = $strongarm;
2020

2121
$strongarm = new stdClass();
2222
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
2323
$strongarm->api_version = 1;
2424
$strongarm->name = 'diff_show_preview_changes_node_event';
25-
$strongarm->value = 1;
25+
$strongarm->value = 0;
2626
$export['diff_show_preview_changes_node_event'] = $strongarm;
2727

2828
$strongarm = new stdClass();

cambridge_events.views_default.inc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,12 @@ function cambridge_events_views_default_views() {
610610
$handler->display->display_options['fields']['body']['settings'] = array(
611611
'trim_length' => '350',
612612
);
613+
$handler->display->display_options['defaults']['sorts'] = FALSE;
614+
/* Sort criterion: Content: Date - start date (field_event_date) */
615+
$handler->display->display_options['sorts']['field_event_date_value']['id'] = 'field_event_date_value';
616+
$handler->display->display_options['sorts']['field_event_date_value']['table'] = 'field_data_field_event_date';
617+
$handler->display->display_options['sorts']['field_event_date_value']['field'] = 'field_event_date_value';
618+
$handler->display->display_options['sorts']['field_event_date_value']['order'] = 'DESC';
613619
$handler->display->display_options['defaults']['filter_groups'] = FALSE;
614620
$handler->display->display_options['defaults']['filters'] = FALSE;
615621
/* Filter criterion: Content: Type */

0 commit comments

Comments
 (0)