Commit d33f9709 authored by Eric Bremner's avatar Eric Bremner
Browse files

FDSU-1829: Adding homepage banners to UW-OS virutal site homepage.

parent 4662c1b9
......@@ -97,6 +97,36 @@ function uw_virtual_site_homepage_field_default_field_bases() {
'type' => 'text',
);
// Exported field_base: 'field_uw_home_page_banners'
$field_bases['field_uw_home_page_banners'] = array(
'active' => 1,
'cardinality' => 10,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_uw_home_page_banners',
'foreign keys' => array(
'fid' => array(
'columns' => array(
'fid' => 'fid',
),
'table' => 'file_managed',
),
),
'indexes' => array(
'fid' => array(
0 => 'fid',
),
),
'locked' => 0,
'module' => 'image',
'settings' => array(
'default_image' => 0,
'uri_scheme' => 'public',
),
'translatable' => 0,
'type' => 'image',
);
// Exported field_base: 'field_uw_office_hours'
$field_bases['field_uw_office_hours'] = array(
'active' => 1,
......
......@@ -76,7 +76,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 7,
'weight' => 8,
),
);
......@@ -146,7 +146,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 6,
'weight' => 7,
),
);
......@@ -216,7 +216,107 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 3,
'weight' => 4,
),
);
// Exported field_instance: 'node-uw_virtual_site_homepage-field_uw_home_page_banners'
$field_instances['node-uw_virtual_site_homepage-field_uw_home_page_banners'] = array(
'bundle' => 'uw_virtual_site_homepage',
'deleted' => 0,
'description' => 'Provide banner images for virtual site homepages on Scholar at Waterloo sites.',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'image',
'settings' => array(
'image_link' => '',
'image_style' => '',
),
'type' => 'image',
'weight' => 11,
),
'links' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'no_image_teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'sidebar_teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'slide_teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'title' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_uw_home_page_banners',
'label' => 'Homepage banners',
'required' => 0,
'settings' => array(
'alt_field' => 1,
'alt_field_required' => 1,
'default_image' => 0,
'file_directory' => '',
'file_extensions' => 'png gif jpg jpeg',
'filefield_paths' => array(
'active_updating' => 0,
'file_name' => array(
'options' => array(
'pathauto' => 0,
'transliterate' => 0,
),
'value' => '[file:ffp-name-only-original].[file:ffp-extension-original]',
),
'file_path' => array(
'options' => array(
'pathauto' => 0,
'transliterate' => 0,
),
'value' => '',
),
'retroactive_update' => 0,
),
'max_filesize' => '',
'max_resolution' => '',
'min_resolution' => '',
'title_field' => 0,
'title_field_required' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'image',
'settings' => array(
'preview_image_style' => 'thumbnail',
'progress_indicator' => 'throbber',
),
'type' => 'image_image',
'weight' => 1,
),
);
......@@ -225,7 +325,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'bundle' => 'uw_virtual_site_homepage',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Enter your office hours. (i.e., Mondays, Wednesday and Fridays 10:30 am to 11:45 am).',
'description' => 'Enter your office hours. (i.e., Mondays, Wednesday and Fridays 10:30 am to 11:45 am).',
'display' => array(
'default' => array(
'label' => 'hidden',
......@@ -286,7 +386,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'rows' => 5,
),
'type' => 'text_textarea',
'weight' => 8,
'weight' => 9,
),
);
......@@ -356,7 +456,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 4,
'weight' => 5,
),
);
......@@ -426,7 +526,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 5,
'weight' => 6,
),
);
......@@ -526,7 +626,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'progress_indicator' => 'throbber',
),
'type' => 'image_image',
'weight' => 1,
'weight' => 2,
),
);
......@@ -601,7 +701,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'summary_rows' => 5,
),
'type' => 'text_textarea_with_summary',
'weight' => 2,
'weight' => 3,
),
);
......@@ -689,7 +789,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'module' => 'og',
'settings' => array(),
'type' => 'og_complex',
'weight' => 12,
'weight' => 10,
),
);
......@@ -757,7 +857,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'module' => 'og_vocab',
'settings' => array(),
'type' => 'og_vocab_complex',
'weight' => 31,
'weight' => 13,
),
);
......@@ -767,19 +867,21 @@ function uw_virtual_site_homepage_field_default_field_instances() {
t('Enter the location of your office (i.e., NH 101).');
t('Enter your email address (i.e., john.doe@uwaterloo.ca).');
t('Enter your faculty or department.');
t('Enter your office hours. (i.e., Mondays, Wednesday and Fridays 10:30 am to 11:45 am).');
t('Enter your phone extension (i.e., 45555).');
t('Enter your phone number, (i.e., 519-888-4567).');
t('Extension');
t('Faculty');
t('Groups audience');
t('Homepage banners');
t('Images should be 360 pixels by 480 pixels.');
t('OG vocabulary');
t('Office hours');
t('Office location');
t('Phone number');
t('Profile image');
t('Provide banner images for virtual site homepages on Scholar at Waterloo sites.');
t('Site description');
t('This is the office hours that you keep. (i.e. Mondays, Wednesday and Fridays 10:30 am to 11:45 am).');
return $field_instances;
}
name = UW Virtual Site Homepage
description = UW virtual site homepage settings
core = 7.x
package = Features
package = uWaterloo Content Types
project = uw_virtual_site_homepage
dependencies[] = ctools
dependencies[] = eim
......@@ -24,6 +24,7 @@ features[features_api][] = api:2
features[field_base][] = field_uw_email_homepage
features[field_base][] = field_uw_extension
features[field_base][] = field_uw_faculty
features[field_base][] = field_uw_home_page_banners
features[field_base][] = field_uw_office_hours
features[field_base][] = field_uw_office_location
features[field_base][] = field_uw_phone_number
......@@ -32,6 +33,7 @@ features[field_base][] = field_uw_site_description
features[field_instance][] = node-uw_virtual_site_homepage-field_uw_email_homepage
features[field_instance][] = node-uw_virtual_site_homepage-field_uw_extension
features[field_instance][] = node-uw_virtual_site_homepage-field_uw_faculty
features[field_instance][] = node-uw_virtual_site_homepage-field_uw_home_page_banners
features[field_instance][] = node-uw_virtual_site_homepage-field_uw_office_hours
features[field_instance][] = node-uw_virtual_site_homepage-field_uw_office_location
features[field_instance][] = node-uw_virtual_site_homepage-field_uw_phone_number
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment