Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
thewilkybarkid committed Mar 23, 2015
0 parents commit b50d479
Show file tree
Hide file tree
Showing 11 changed files with 1,258 additions and 0 deletions.
339 changes: 339 additions & 0 deletions LICENSE.txt

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Drupal 7 University of Cambridge event feature
==============================================

This feature adds an event content type and basic views.
43 changes: 43 additions & 0 deletions cambridge_events.features.fe_block_settings.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?php
/**
* @file
* cambridge_events.features.fe_block_settings.inc
*/

/**
* Implements hook_default_fe_block_settings().
*/
function cambridge_events_default_fe_block_settings() {
$export = array();

$export['version'] = '2.0';

$export['views-events-block'] = array(
'cache' => -1,
'custom' => 0,
'delta' => 'events-block',
'module' => 'views',
'node_types' => array(),
'pages' => 'events
events/*',
'roles' => array(),
'themes' => array(
'cambridge_theme' => array(
'region' => 'sidebar',
'status' => 1,
'theme' => 'cambridge_theme',
'weight' => 0,
),
'seven' => array(
'region' => '',
'status' => 0,
'theme' => 'seven',
'weight' => 0,
),
),
'title' => '',
'visibility' => 0,
);

return $export;
}
44 changes: 44 additions & 0 deletions cambridge_events.features.field_base.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php
/**
* @file
* cambridge_events.features.field_base.inc
*/

/**
* Implements hook_field_default_field_bases().
*/
function cambridge_events_field_default_field_bases() {
$field_bases = array();

// Exported field_base: 'field_event_date'
$field_bases['field_event_date'] = array(
'active' => 1,
'cardinality' => -1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_event_date',
'indexes' => array(),
'locked' => 0,
'module' => 'date',
'settings' => array(
'cache_count' => 4,
'cache_enabled' => 0,
'granularity' => array(
'day' => 'day',
'hour' => 'hour',
'minute' => 'minute',
'month' => 'month',
'second' => 0,
'year' => 'year',
),
'repeat' => 1,
'timezone_db' => 'UTC',
'todate' => 'optional',
'tz_handling' => 'site',
),
'translatable' => 0,
'type' => 'datetime',
);

return $field_bases;
}
Loading

0 comments on commit b50d479

Please sign in to comment.