Skip to content

Commit b50d479

Browse files
Initial commit
0 parents  commit b50d479

11 files changed

+1258
-0
lines changed

LICENSE.txt

Lines changed: 339 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Drupal 7 University of Cambridge event feature
2+
==============================================
3+
4+
This feature adds an event content type and basic views.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?php
2+
/**
3+
* @file
4+
* cambridge_events.features.fe_block_settings.inc
5+
*/
6+
7+
/**
8+
* Implements hook_default_fe_block_settings().
9+
*/
10+
function cambridge_events_default_fe_block_settings() {
11+
$export = array();
12+
13+
$export['version'] = '2.0';
14+
15+
$export['views-events-block'] = array(
16+
'cache' => -1,
17+
'custom' => 0,
18+
'delta' => 'events-block',
19+
'module' => 'views',
20+
'node_types' => array(),
21+
'pages' => 'events
22+
events/*',
23+
'roles' => array(),
24+
'themes' => array(
25+
'cambridge_theme' => array(
26+
'region' => 'sidebar',
27+
'status' => 1,
28+
'theme' => 'cambridge_theme',
29+
'weight' => 0,
30+
),
31+
'seven' => array(
32+
'region' => '',
33+
'status' => 0,
34+
'theme' => 'seven',
35+
'weight' => 0,
36+
),
37+
),
38+
'title' => '',
39+
'visibility' => 0,
40+
);
41+
42+
return $export;
43+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?php
2+
/**
3+
* @file
4+
* cambridge_events.features.field_base.inc
5+
*/
6+
7+
/**
8+
* Implements hook_field_default_field_bases().
9+
*/
10+
function cambridge_events_field_default_field_bases() {
11+
$field_bases = array();
12+
13+
// Exported field_base: 'field_event_date'
14+
$field_bases['field_event_date'] = array(
15+
'active' => 1,
16+
'cardinality' => -1,
17+
'deleted' => 0,
18+
'entity_types' => array(),
19+
'field_name' => 'field_event_date',
20+
'indexes' => array(),
21+
'locked' => 0,
22+
'module' => 'date',
23+
'settings' => array(
24+
'cache_count' => 4,
25+
'cache_enabled' => 0,
26+
'granularity' => array(
27+
'day' => 'day',
28+
'hour' => 'hour',
29+
'minute' => 'minute',
30+
'month' => 'month',
31+
'second' => 0,
32+
'year' => 'year',
33+
),
34+
'repeat' => 1,
35+
'timezone_db' => 'UTC',
36+
'todate' => 'optional',
37+
'tz_handling' => 'site',
38+
),
39+
'translatable' => 0,
40+
'type' => 'datetime',
41+
);
42+
43+
return $field_bases;
44+
}

0 commit comments

Comments
 (0)