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

ISTWCMS-1978: Adding twitter fieldset to the settings page.

parent 90cbf1e4
...@@ -272,7 +272,7 @@ function uw_virtual_site_homepage_field_default_field_instances() { ...@@ -272,7 +272,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'size' => 60, 'size' => 60,
), ),
'type' => 'text_textfield', 'type' => 'text_textfield',
'weight' => 9, 'weight' => 8,
), ),
); );
...@@ -343,7 +343,7 @@ function uw_virtual_site_homepage_field_default_field_instances() { ...@@ -343,7 +343,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'size' => 60, 'size' => 60,
), ),
'type' => 'text_textfield', 'type' => 'text_textfield',
'weight' => 14, 'weight' => 13,
), ),
); );
...@@ -414,7 +414,7 @@ function uw_virtual_site_homepage_field_default_field_instances() { ...@@ -414,7 +414,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'size' => 60, 'size' => 60,
), ),
'type' => 'text_textfield', 'type' => 'text_textfield',
'weight' => 12, 'weight' => 11,
), ),
); );
...@@ -482,7 +482,7 @@ function uw_virtual_site_homepage_field_default_field_instances() { ...@@ -482,7 +482,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'module' => 'options', 'module' => 'options',
'settings' => array(), 'settings' => array(),
'type' => 'options_select', 'type' => 'options_select',
'weight' => 7, 'weight' => 6,
), ),
); );
...@@ -556,7 +556,7 @@ function uw_virtual_site_homepage_field_default_field_instances() { ...@@ -556,7 +556,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'module' => 'field_collection', 'module' => 'field_collection',
'settings' => array(), 'settings' => array(),
'type' => 'field_collection_embed', 'type' => 'field_collection_embed',
'weight' => 4, 'weight' => 3,
), ),
); );
...@@ -627,7 +627,7 @@ function uw_virtual_site_homepage_field_default_field_instances() { ...@@ -627,7 +627,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'rows' => 5, 'rows' => 5,
), ),
'type' => 'text_textarea', 'type' => 'text_textarea',
'weight' => 15, 'weight' => 14,
), ),
); );
...@@ -698,7 +698,7 @@ function uw_virtual_site_homepage_field_default_field_instances() { ...@@ -698,7 +698,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'size' => 60, 'size' => 60,
), ),
'type' => 'text_textfield', 'type' => 'text_textfield',
'weight' => 10, 'weight' => 9,
), ),
); );
...@@ -769,7 +769,7 @@ function uw_virtual_site_homepage_field_default_field_instances() { ...@@ -769,7 +769,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'size' => 60, 'size' => 60,
), ),
'type' => 'text_textfield', 'type' => 'text_textfield',
'weight' => 8, 'weight' => 7,
), ),
); );
...@@ -840,7 +840,7 @@ function uw_virtual_site_homepage_field_default_field_instances() { ...@@ -840,7 +840,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'size' => 60, 'size' => 60,
), ),
'type' => 'text_textfield', 'type' => 'text_textfield',
'weight' => 11, 'weight' => 10,
), ),
); );
...@@ -951,7 +951,7 @@ function uw_virtual_site_homepage_field_default_field_instances() { ...@@ -951,7 +951,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'progress_indicator' => 'throbber', 'progress_indicator' => 'throbber',
), ),
'type' => 'image_image', 'type' => 'image_image',
'weight' => 5, 'weight' => 4,
), ),
); );
...@@ -1027,7 +1027,7 @@ function uw_virtual_site_homepage_field_default_field_instances() { ...@@ -1027,7 +1027,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'summary_rows' => 5, 'summary_rows' => 5,
), ),
'type' => 'text_textarea_with_summary', 'type' => 'text_textarea_with_summary',
'weight' => 6, 'weight' => 5,
), ),
); );
...@@ -1330,7 +1330,7 @@ function uw_virtual_site_homepage_field_default_field_instances() { ...@@ -1330,7 +1330,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'module' => 'og', 'module' => 'og',
'settings' => array(), 'settings' => array(),
'type' => 'og_complex', 'type' => 'og_complex',
'weight' => 13, 'weight' => 12,
), ),
); );
......
...@@ -8,6 +8,9 @@ ...@@ -8,6 +8,9 @@
* Implements hook_ctools_plugin_api(). * Implements hook_ctools_plugin_api().
*/ */
function uw_virtual_site_homepage_ctools_plugin_api($module = NULL, $api = NULL) { function uw_virtual_site_homepage_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "field_group" && $api == "field_group") {
return array("version" => "1");
}
if ($module == "strongarm" && $api == "strongarm") { if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1"); return array("version" => "1");
} }
......
<?php
/**
* @file
* uw_virtual_site_homepage.field_group.inc
*/
/**
* Implements hook_field_group_info().
*/
function uw_virtual_site_homepage_field_group_info() {
$export = array();
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_uw_twitter|node|uw_virtual_site_homepage|form';
$field_group->group_name = 'group_uw_twitter';
$field_group->entity_type = 'node';
$field_group->bundle = 'uw_virtual_site_homepage';
$field_group->mode = 'form';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Twitter',
'weight' => '19',
'children' => array(
0 => 'field_uw_twitter_type',
1 => 'field_uw_twitter_username',
),
'format_type' => 'fieldset',
'format_settings' => array(
'formatter' => 'collapsible',
'instance_settings' => array(
'description' => '',
'classes' => '',
'required_fields' => 1,
),
),
);
$export['group_uw_twitter|node|uw_virtual_site_homepage|form'] = $field_group;
return $export;
}
...@@ -9,6 +9,7 @@ dependencies[] = eim ...@@ -9,6 +9,7 @@ dependencies[] = eim
dependencies[] = entityreference dependencies[] = entityreference
dependencies[] = features dependencies[] = features
dependencies[] = field_collection dependencies[] = field_collection
dependencies[] = field_group
dependencies[] = focal_point dependencies[] = focal_point
dependencies[] = image dependencies[] = image
dependencies[] = image_field_caption dependencies[] = image_field_caption
...@@ -29,6 +30,7 @@ dependencies[] = vsite_vocab ...@@ -29,6 +30,7 @@ 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 stylesheets[all][] = css/uw_virtual_site_homepage.css
features[conditional_fields][] = node:uw_virtual_site_homepage features[conditional_fields][] = node:uw_virtual_site_homepage
features[ctools][] = field_group:field_group:1
features[ctools][] = strongarm:strongarm:1 features[ctools][] = strongarm:strongarm:1
features[ctools][] = views:views_default:3.0 features[ctools][] = views:views_default:3.0
features[features_api][] = api:2 features[features_api][] = api:2
...@@ -50,6 +52,7 @@ features[field_base][] = field_uw_theme_settings ...@@ -50,6 +52,7 @@ features[field_base][] = field_uw_theme_settings
features[field_base][] = field_uw_twitter_type features[field_base][] = field_uw_twitter_type
features[field_base][] = field_uw_twitter_username features[field_base][] = field_uw_twitter_username
features[field_base][] = og_group_ref features[field_base][] = og_group_ref
features[field_group][] = group_uw_twitter|node|uw_virtual_site_homepage|form
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_image
features[field_instance][] = field_collection_item-field_uw_homepage_banners-field_uw_homepage_banners_link features[field_instance][] = field_collection_item-field_uw_homepage_banners-field_uw_homepage_banners_link
features[field_instance][] = node-uw_virtual_site_homepage-field_uw_credentials features[field_instance][] = node-uw_virtual_site_homepage-field_uw_credentials
......
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