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
f8b0f37c
Commit
f8b0f37c
authored
Dec 16, 2016
by
Eric Bremner
Browse files
FDSU-1861: Adding theme settings.
parent
3b7b26ee
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
128 additions
and
15 deletions
+128
-15
uw_virtual_site_homepage.features.field_base.inc
uw_virtual_site_homepage.features.field_base.inc
+35
-0
uw_virtual_site_homepage.features.field_instance.inc
uw_virtual_site_homepage.features.field_instance.inc
+90
-15
uw_virtual_site_homepage.info
uw_virtual_site_homepage.info
+3
-0
No files found.
uw_virtual_site_homepage.features.field_base.inc
View file @
f8b0f37c
...
...
@@ -241,5 +241,40 @@ function uw_virtual_site_homepage_field_default_field_bases() {
'type'
=>
'text_with_summary'
,
);
// Exported field_base: 'field_uw_theme_settings'
$field_bases
[
'field_uw_theme_settings'
]
=
array
(
'active'
=>
1
,
'cardinality'
=>
1
,
'deleted'
=>
0
,
'entity_types'
=>
array
(),
'field_name'
=>
'field_uw_theme_settings'
,
'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'
=>
'Congrad Gabel 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'
,
);
return
$field_bases
;
}
uw_virtual_site_homepage.features.field_instance.inc
View file @
f8b0f37c
...
...
@@ -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,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'size'
=>
60
,
),
'type'
=>
'text_textfield'
,
'weight'
=>
3
,
'weight'
=>
4
,
),
);
...
...
@@ -286,7 +286,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'rows'
=>
5
,
),
'type'
=>
'text_textarea'
,
'weight'
=>
8
,
'weight'
=>
9
,
),
);
...
...
@@ -356,7 +356,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'size'
=>
60
,
),
'type'
=>
'text_textfield'
,
'weight'
=>
4
,
'weight'
=>
5
,
),
);
...
...
@@ -426,7 +426,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'size'
=>
60
,
),
'type'
=>
'text_textfield'
,
'weight'
=>
5
,
'weight'
=>
6
,
),
);
...
...
@@ -526,7 +526,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'progress_indicator'
=>
'throbber'
,
),
'type'
=>
'image_image'
,
'weight'
=>
1
,
'weight'
=>
2
,
),
);
...
...
@@ -601,7 +601,78 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'summary_rows'
=>
5
,
),
'type'
=>
'text_textarea_with_summary'
,
'weight'
=>
2
,
'weight'
=>
3
,
),
);
// Exported field_instance: 'node-uw_virtual_site_homepage-field_uw_theme_settings'
$field_instances
[
'node-uw_virtual_site_homepage-field_uw_theme_settings'
]
=
array
(
'bundle'
=>
'uw_virtual_site_homepage'
,
'default_value'
=>
array
(
0
=>
array
(
'value'
=>
'default'
,
),
),
'deleted'
=>
0
,
'description'
=>
''
,
'display'
=>
array
(
'default'
=>
array
(
'label'
=>
'above'
,
'module'
=>
'list'
,
'settings'
=>
array
(),
'type'
=>
'list_default'
,
'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_theme_settings'
,
'label'
=>
'Theme settings'
,
'required'
=>
0
,
'settings'
=>
array
(
'user_register_form'
=>
FALSE
,
),
'widget'
=>
array
(
'active'
=>
1
,
'module'
=>
'options'
,
'settings'
=>
array
(),
'type'
=>
'options_select'
,
'weight'
=>
1
,
),
);
...
...
@@ -689,7 +760,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'module'
=>
'og'
,
'settings'
=>
array
(),
'type'
=>
'og_complex'
,
'weight'
=>
1
2
,
'weight'
=>
1
0
,
),
);
...
...
@@ -734,10 +805,13 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'weight'
=>
0
,
),
'teaser'
=>
array
(
'label'
=>
'above'
,
'settings'
=>
array
(),
'type'
=>
'hidden'
,
'weight'
=>
0
,
'label'
=>
'hidden'
,
'module'
=>
'vsite_vocab'
,
'settings'
=>
array
(
'concatenate'
=>
1
,
),
'type'
=>
'og_vocab'
,
'weight'
=>
10
,
),
'title'
=>
array
(
'label'
=>
'above'
,
...
...
@@ -757,7 +831,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
'module'
=>
'og_vocab'
,
'settings'
=>
array
(),
'type'
=>
'og_vocab_complex'
,
'weight'
=>
3
1
,
'weight'
=>
1
3
,
),
);
...
...
@@ -767,6 +841,7 @@ 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'
);
...
...
@@ -779,7 +854,7 @@ function uw_virtual_site_homepage_field_default_field_instances() {
t
(
'Phone number'
);
t
(
'Profile image'
);
t
(
'Site description'
);
t
(
'Th
is is the office hours that you keep. (i.e. Mondays, Wednesday and Fridays 10:30 am to 11:45 am).
'
);
t
(
'Th
eme settings
'
);
return
$field_instances
;
}
uw_virtual_site_homepage.info
View file @
f8b0f37c
...
...
@@ -7,6 +7,7 @@ dependencies[] = ctools
dependencies
[]
=
eim
dependencies
[]
=
features
dependencies
[]
=
image
dependencies
[]
=
list
dependencies
[]
=
media
dependencies
[]
=
menu
dependencies
[]
=
node
...
...
@@ -29,6 +30,7 @@ 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_base
][]
=
field_uw_theme_settings
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
...
...
@@ -37,6 +39,7 @@ features[field_instance][] = node-uw_virtual_site_homepage-field_uw_office_locat
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
-
og_group_ref
features
[
field_instance
][]
=
node
-
uw_virtual_site_homepage
-
og_vocabulary
features
[
node
][]
=
uw_virtual_site_homepage
...
...
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