Commit 90cbf1e4 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-1978: Adding twitter to the layout.

parent fea9ecdc
......@@ -414,6 +414,52 @@ function uw_virtual_site_homepage_field_default_field_bases() {
'type' => 'list_text',
);
// Exported field_base: 'field_uw_twitter_type'.
$field_bases['field_uw_twitter_type'] = array(
'active' => 1,
'cardinality' => 2,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_uw_twitter_type',
'indexes' => array(
'value' => array(
0 => 'value',
),
),
'locked' => 0,
'module' => 'list',
'settings' => array(
'allowed_values' => array(
'Homepage' => 'Home page',
'Sidebar' => 'Sidebar',
),
'allowed_values_function' => '',
),
'translatable' => 0,
'type' => 'list_text',
);
// Exported field_base: 'field_uw_twitter_username'.
$field_bases['field_uw_twitter_username'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_uw_twitter_username',
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'locked' => 0,
'module' => 'text',
'settings' => array(
'max_length' => 255,
),
'translatable' => 0,
'type' => 'text',
);
// Exported field_base: 'og_group_ref'.
$field_bases['og_group_ref'] = array(
'active' => 1,
......
......@@ -1103,6 +1103,149 @@ function uw_virtual_site_homepage_field_default_field_instances() {
),
);
// Exported field_instance:
// 'node-uw_virtual_site_homepage-field_uw_twitter_type'.
$field_instances['node-uw_virtual_site_homepage-field_uw_twitter_type'] = array(
'bundle' => 'uw_virtual_site_homepage',
'default_value' => array(
0 => array(
'value' => 'Sidebar',
),
),
'deleted' => 0,
'description' => 'Choose the place(s) where the twitter feed should be displayed.',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 18,
),
'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_twitter_type',
'label' => 'Twitter type',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => 42,
),
);
// Exported field_instance:
// 'node-uw_virtual_site_homepage-field_uw_twitter_username'.
$field_instances['node-uw_virtual_site_homepage-field_uw_twitter_username'] = array(
'bundle' => 'uw_virtual_site_homepage',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 17,
),
'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_twitter_username',
'label' => 'Twitter username',
'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' => 41,
),
);
// Exported field_instance: 'node-uw_virtual_site_homepage-og_group_ref'.
$field_instances['node-uw_virtual_site_homepage-og_group_ref'] = array(
'bundle' => 'uw_virtual_site_homepage',
......@@ -1193,6 +1336,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
// Translatables
// Included for use with string extractors like potx.
t('Choose the place(s) where the twitter feed should be displayed.');
t('Credentials');
t('Department/school');
t('Email');
......@@ -1218,6 +1362,8 @@ function uw_virtual_site_homepage_field_default_field_instances() {
t('Profile image');
t('Site description');
t('Theme settings');
t('Twitter type');
t('Twitter username');
t('Upload banner images to your homepage. <b>Note:</b> having more than eight home page banner images is not recommended.');
return $field_instances;
......
......@@ -26,7 +26,7 @@ dependencies[] = strongarm
dependencies[] = text
dependencies[] = views
dependencies[] = vsite_vocab
scripts[] = 'js/uw_virtual_site_homepage.js'
scripts[] = js/uw_virtual_site_homepage.js
stylesheets[all][] = css/uw_virtual_site_homepage.css
features[conditional_fields][] = node:uw_virtual_site_homepage
features[ctools][] = strongarm:strongarm:1
......@@ -47,6 +47,8 @@ features[field_base][] = field_uw_phone_number
features[field_base][] = field_uw_profile_image
features[field_base][] = field_uw_site_description
features[field_base][] = field_uw_theme_settings
features[field_base][] = field_uw_twitter_type
features[field_base][] = field_uw_twitter_username
features[field_base][] = og_group_ref
features[field_instance][] = field_collection_item-field_uw_homepage_banners-field_uw_homepage_banners_image
features[field_instance][] = field_collection_item-field_uw_homepage_banners-field_uw_homepage_banners_link
......@@ -63,6 +65,8 @@ features[field_instance][] = node-uw_virtual_site_homepage-field_uw_phone_number
features[field_instance][] = node-uw_virtual_site_homepage-field_uw_profile_image
features[field_instance][] = node-uw_virtual_site_homepage-field_uw_site_description
features[field_instance][] = node-uw_virtual_site_homepage-field_uw_theme_settings
features[field_instance][] = node-uw_virtual_site_homepage-field_uw_twitter_type
features[field_instance][] = node-uw_virtual_site_homepage-field_uw_twitter_username
features[field_instance][] = node-uw_virtual_site_homepage-og_group_ref
features[image][] = uw_homepage_banners
features[image][] = uw_homepage_banners_large
......
Markdown is supported
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