Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
wcms-openscholar
uw_virtual_site_homepage
Commits
fff09421
Commit
fff09421
authored
Apr 17, 2017
by
Eric Bremner
Browse files
ISTWCMS-1978: Adding twitter fieldset to the settings page.
parent
90cbf1e4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
60 additions
and
12 deletions
+60
-12
uw_virtual_site_homepage.features.field_instance.inc
uw_virtual_site_homepage.features.field_instance.inc
+12
-12
uw_virtual_site_homepage.features.inc
uw_virtual_site_homepage.features.inc
+3
-0
uw_virtual_site_homepage.field_group.inc
uw_virtual_site_homepage.field_group.inc
+42
-0
uw_virtual_site_homepage.info
uw_virtual_site_homepage.info
+3
-0
No files found.
uw_virtual_site_homepage.features.field_instance.inc
View file @
fff09421
...
...
@@ -272,7 +272,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'size'
=>
60
,
),
'type'
=>
'text_textfield'
,
'weight'
=>
9
,
'weight'
=>
8
,
),
);
...
...
@@ -343,7 +343,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'size'
=>
60
,
),
'type'
=>
'text_textfield'
,
'weight'
=>
1
4
,
'weight'
=>
1
3
,
),
);
...
...
@@ -414,7 +414,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'size'
=>
60
,
),
'type'
=>
'text_textfield'
,
'weight'
=>
1
2
,
'weight'
=>
1
1
,
),
);
...
...
@@ -482,7 +482,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'module'
=>
'options'
,
'settings'
=>
array
(),
'type'
=>
'options_select'
,
'weight'
=>
7
,
'weight'
=>
6
,
),
);
...
...
@@ -556,7 +556,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'module'
=>
'field_collection'
,
'settings'
=>
array
(),
'type'
=>
'field_collection_embed'
,
'weight'
=>
4
,
'weight'
=>
3
,
),
);
...
...
@@ -627,7 +627,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'rows'
=>
5
,
),
'type'
=>
'text_textarea'
,
'weight'
=>
1
5
,
'weight'
=>
1
4
,
),
);
...
...
@@ -698,7 +698,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'size'
=>
60
,
),
'type'
=>
'text_textfield'
,
'weight'
=>
10
,
'weight'
=>
9
,
),
);
...
...
@@ -769,7 +769,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'size'
=>
60
,
),
'type'
=>
'text_textfield'
,
'weight'
=>
8
,
'weight'
=>
7
,
),
);
...
...
@@ -840,7 +840,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'size'
=>
60
,
),
'type'
=>
'text_textfield'
,
'weight'
=>
1
1
,
'weight'
=>
1
0
,
),
);
...
...
@@ -951,7 +951,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'progress_indicator'
=>
'throbber'
,
),
'type'
=>
'image_image'
,
'weight'
=>
5
,
'weight'
=>
4
,
),
);
...
...
@@ -1027,7 +1027,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'summary_rows'
=>
5
,
),
'type'
=>
'text_textarea_with_summary'
,
'weight'
=>
6
,
'weight'
=>
5
,
),
);
...
...
@@ -1330,7 +1330,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'module'
=>
'og'
,
'settings'
=>
array
(),
'type'
=>
'og_complex'
,
'weight'
=>
1
3
,
'weight'
=>
1
2
,
),
);
...
...
uw_virtual_site_homepage.features.inc
View file @
fff09421
...
...
@@ -8,6 +8,9 @@
* Implements hook_ctools_plugin_api().
*/
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"
)
{
return
array
(
"version"
=>
"1"
);
}
...
...
uw_virtual_site_homepage.field_group.inc
0 → 100644
View file @
fff09421
<?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
;
}
uw_virtual_site_homepage.info
View file @
fff09421
...
...
@@ -9,6 +9,7 @@ dependencies[] = eim
dependencies
[]
=
entityreference
dependencies
[]
=
features
dependencies
[]
=
field_collection
dependencies
[]
=
field_group
dependencies
[]
=
focal_point
dependencies
[]
=
image
dependencies
[]
=
image_field_caption
...
...
@@ -29,6 +30,7 @@ dependencies[] = vsite_vocab
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
][]
=
field_group
:
field_group
:
1
features
[
ctools
][]
=
strongarm
:
strongarm
:
1
features
[
ctools
][]
=
views
:
views_default
:
3.0
features
[
features_api
][]
=
api
:
2
...
...
@@ -50,6 +52,7 @@ 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_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_link
features
[
field_instance
][]
=
node
-
uw_virtual_site_homepage
-
field_uw_credentials
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment