-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b50d479
Showing
11 changed files
with
1,258 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
Oops, something went wrong.