Commit 8cb5f6a1 authored by Lily Yan's avatar Lily Yan
Browse files

FDSU-1805 Add faculty and department fields.

parent 2934dba0
......@@ -39,6 +39,35 @@ function uw_virtual_site_homepage_field_default_field_bases() {
'type' => 'text',
);
// Exported field_base: 'field_uw_department'
$field_bases['field_uw_department'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_uw_department',
'foreign keys' => array(
'format' => array(
'columns' => array(
'format' => 'format',
),
'table' => 'filter_format',
),
),
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'locked' => 0,
'module' => 'text',
'settings' => array(
'max_length' => 255,
),
'translatable' => 0,
'type' => 'text',
);
// Exported field_base: 'field_uw_email_homepage'
$field_bases['field_uw_email_homepage'] = array(
'active' => 1,
......@@ -126,6 +155,41 @@ function uw_virtual_site_homepage_field_default_field_bases() {
'type' => 'text',
);
// Exported field_base: 'field_uw_faculty_list'
$field_bases['field_uw_faculty_list'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_uw_faculty_list',
'foreign keys' => array(),
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'locked' => 0,
'module' => 'list',
'settings' => array(
'allowed_values' => array(
'default' => 'University of Waterloo',
'ahs' => 'Applied Health Science',
'arts' => 'Arts',
'engineering' => 'Engineering',
'environment' => 'Environment',
'math' => 'Math',
'science' => 'Science',
'cgc' => 'Conrad Grebel University College',
'ren' => 'Renison University College',
'stj' => 'St. Jerome\'s University',
'stp' => 'St. Paul\'s University College',
),
'allowed_values_function' => '',
),
'translatable' => 0,
'type' => 'list_text',
);
// Exported field_base: 'field_uw_office_hours'
$field_bases['field_uw_office_hours'] = array(
'active' => 1,
......
......@@ -80,6 +80,76 @@ function uw_virtual_site_homepage_field_default_field_instances() {
),
);
// Exported field_instance: 'node-uw_virtual_site_homepage-field_uw_department'
$field_instances['node-uw_virtual_site_homepage-field_uw_department'] = array(
'bundle' => 'uw_virtual_site_homepage',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 4,
),
'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_department',
'label' => 'Department/school',
'required' => 0,
'settings' => array(
'text_processing' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 6,
),
);
// Exported field_instance: 'node-uw_virtual_site_homepage-field_uw_email_homepage'
$field_instances['node-uw_virtual_site_homepage-field_uw_email_homepage'] = array(
'bundle' => 'uw_virtual_site_homepage',
......@@ -146,7 +216,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 8,
'weight' => 10,
),
);
......@@ -216,7 +286,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 7,
'weight' => 9,
),
);
......@@ -290,6 +360,77 @@ function uw_virtual_site_homepage_field_default_field_instances() {
),
);
// Exported field_instance: 'node-uw_virtual_site_homepage-field_uw_faculty_list'
$field_instances['node-uw_virtual_site_homepage-field_uw_faculty_list'] = array(
'bundle' => 'uw_virtual_site_homepage',
'default_value' => array(
0 => array(
'value' => 'default',
),
),
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 3,
),
'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_faculty_list',
'label' => 'Faculty',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => 5,
),
);
// Exported field_instance: 'node-uw_virtual_site_homepage-field_uw_office_hours'
$field_instances['node-uw_virtual_site_homepage-field_uw_office_hours'] = array(
'bundle' => 'uw_virtual_site_homepage',
......@@ -356,7 +497,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'rows' => 5,
),
'type' => 'text_textarea',
'weight' => 9,
'weight' => 11,
),
);
......@@ -426,7 +567,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 5,
'weight' => 7,
),
);
......@@ -496,7 +637,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 6,
'weight' => 8,
),
);
......@@ -686,7 +827,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'label' => 'hidden',
'settings' => array(),
'type' => 'hidden',
'weight' => 3,
'weight' => 12,
),
'links' => array(
'label' => 'above',
......@@ -759,7 +900,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'module' => 'og',
'settings' => array(),
'type' => 'og_complex',
'weight' => 10,
'weight' => 12,
),
);
......@@ -834,6 +975,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
// Translatables
// Included for use with string extractors like potx.
t('Credentials');
t('Department/school');
t('Email');
t('Enter the location of your office (for example: NH 101).');
t('Enter your credentials. This will appear under the site title at the top of every page (for example: PhD Computer Science). Leave blank if not to be displayed.');
......
......@@ -7,6 +7,7 @@ dependencies[] = ctools
dependencies[] = eim
dependencies[] = features
dependencies[] = image
dependencies[] = list
dependencies[] = media
dependencies[] = menu
dependencies[] = node
......@@ -22,18 +23,22 @@ features[ctools][] = strongarm:strongarm:1
features[ctools][] = views:views_default:3.0
features[features_api][] = api:2
features[field_base][] = field_uw_credentials
features[field_base][] = field_uw_department
features[field_base][] = field_uw_email_homepage
features[field_base][] = field_uw_extension
features[field_base][] = field_uw_faculty
features[field_base][] = field_uw_faculty_list
features[field_base][] = field_uw_office_hours
features[field_base][] = field_uw_office_location
features[field_base][] = field_uw_phone_number
features[field_base][] = field_uw_profile_image
features[field_base][] = field_uw_site_description
features[field_instance][] = node-uw_virtual_site_homepage-field_uw_credentials
features[field_instance][] = node-uw_virtual_site_homepage-field_uw_department
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_faculty_list
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
......@@ -61,3 +66,4 @@ features[variable][] = node_preview_uw_virtual_site_homepage
features[variable][] = node_submitted_uw_virtual_site_homepage
features[views_view][] = uw_virtual_site_homepage_view
features_exclude[menu_links][navigation_uw-virtual-site-homepage:node/add/uw-virtual-site-homepage] = navigation_uw-virtual-site-homepage:node/add/uw-virtual-site-homepage
mtime = 1484078915
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