Skip to content

Commit

Permalink
Updated Event feature to version 2.0 with new fields and a new past e…
Browse files Browse the repository at this point in the history
…vents page view for the included view in the module. Added a changelog.
  • Loading branch information
JeebsUK committed Apr 4, 2019
1 parent b50d479 commit 37dfe14
Show file tree
Hide file tree
Showing 13 changed files with 963 additions and 25 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Changelog
=========

2.0

4 April 2019

The event content type feature has been revamped as part of the Falcon-to-Drupal migration project.
The content type now contains additional useful fields.
The view also now contains a "past events" page view in addition to the main "upcoming events" page view.


1.0

Initial commit.
Empty file modified LICENSE.txt
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
10 changes: 5 additions & 5 deletions cambridge_events.features.fe_block_settings.inc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @file
* cambridge_events.features.fe_block_settings.inc
Expand All @@ -18,15 +19,14 @@ function cambridge_events_default_fe_block_settings() {
'delta' => 'events-block',
'module' => 'views',
'node_types' => array(),
'pages' => 'events
events/*',
'pages' => '',
'roles' => array(),
'themes' => array(
'cambridge_theme' => array(
'region' => 'sidebar',
'status' => 1,
'region' => '',
'status' => 0,
'theme' => 'cambridge_theme',
'weight' => 0,
'weight' => -26,
),
'seven' => array(
'region' => '',
Expand Down
110 changes: 109 additions & 1 deletion cambridge_events.features.field_base.inc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @file
* cambridge_events.features.field_base.inc
Expand All @@ -10,7 +11,64 @@
function cambridge_events_field_default_field_bases() {
$field_bases = array();

// Exported field_base: 'field_event_date'
// Exported field_base: 'field_contact_email'.
$field_bases['field_contact_email'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_contact_email',
'indexes' => array(),
'locked' => 0,
'module' => 'email',
'settings' => array(),
'translatable' => 0,
'type' => 'email',
);

// Exported field_base: 'field_contact_name'.
$field_bases['field_contact_name'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_contact_name',
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'locked' => 0,
'module' => 'text',
'settings' => array(
'max_length' => 255,
),
'translatable' => 0,
'type' => 'text',
);

// Exported field_base: 'field_contact_phone'.
$field_bases['field_contact_phone'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_contact_phone',
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'locked' => 0,
'module' => 'text',
'settings' => array(
'max_length' => 255,
),
'translatable' => 0,
'type' => 'text',
);

// Exported field_base: 'field_event_date'.
$field_bases['field_event_date'] = array(
'active' => 1,
'cardinality' => -1,
Expand Down Expand Up @@ -40,5 +98,55 @@ function cambridge_events_field_default_field_bases() {
'type' => 'datetime',
);

// Exported field_base: 'field_event_location'.
$field_bases['field_event_location'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_event_location',
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'locked' => 0,
'module' => 'text',
'settings' => array(
'max_length' => 255,
),
'translatable' => 0,
'type' => 'text',
);

// Exported field_base: 'field_event_url'.
$field_bases['field_event_url'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_event_url',
'indexes' => array(),
'locked' => 0,
'module' => 'link',
'settings' => array(
'attributes' => array(
'class' => '',
'rel' => '',
'target' => 'default',
),
'display' => array(
'url_cutoff' => 80,
),
'enable_tokens' => 1,
'title' => 'optional',
'title_maxlength' => 128,
'title_value' => '',
'url' => 0,
),
'translatable' => 0,
'type' => 'link_field',
);

return $field_bases;
}
Loading

0 comments on commit 37dfe14

Please sign in to comment.