Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Drupal Upstream
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASC IRIS Web Services
Drupal Upstream
Commits
6bae7689
Unverified
Commit
6bae7689
authored
4 years ago
by
weaver299
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request
#301
from ASCWebServices/canini-2
debugging people mobile view
parents
9cf58e78
39da8dc9
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
web/themes/asc_bootstrap/asc_bootstrap.theme
+39
-3
39 additions, 3 deletions
web/themes/asc_bootstrap/asc_bootstrap.theme
with
39 additions
and
3 deletions
web/themes/asc_bootstrap/asc_bootstrap.theme
+
39
−
3
View file @
6bae7689
...
...
@@ -632,15 +632,51 @@ function asc_bootstrap_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $
$form
[
'field_research_interests_target_id'
][
'#weight'
]
=
4
;
if
(
count
(
$form
[
'field_appointment_target_id'
][
'#options'
])
==
0
)
{
$form
[
'field_appointment_target_id'
][
'#access'
]
=
FALSE
;
$form
[
'field_appointment_target_id_collapsible'
][
'#access'
]
=
FALSE
;
}
else
{
$tid
=
array_shift
(
array_keys
(
$form
[
'field_appointment_target_id'
][
'#options'
]));
$term
=
Term
::
load
(
$tid
);
if
(
!
empty
(
$term
))
{
$vid
=
array_shift
(
$term
->
vid
->
getValue
())[
'target_id'
];
if
(
!
empty
(
$vid
))
{
$vocab
=
Vocabulary
::
load
(
$vid
);
$vocab_label
=
$vocab
->
get
(
'name'
);
$form
[
'field_appointment_target_id_collapsible'
][
'#title'
]
=
$vocab_label
;
}
}
}
if
(
count
(
$form
[
'field_research_interests_target_id'
][
'#options'
])
==
0
)
{
$form
[
'field_research_interests_target_id'
][
'#access'
]
=
FALSE
;
$form
[
'field_research_interests_target_id_collapsible'
][
'#access'
]
=
FALSE
;
}
else
{
$tid
=
array_shift
(
array_keys
(
$form
[
'field_research_interests_target_id'
][
'#options'
]));
$term
=
Term
::
load
(
$tid
);
if
(
!
empty
(
$term
))
{
$vid
=
array_shift
(
$term
->
vid
->
getValue
())[
'target_id'
];
if
(
!
empty
(
$vid
))
{
$vocab
=
Vocabulary
::
load
(
$vid
);
$vocab_label
=
$vocab
->
get
(
'name'
);
$form
[
'field_research_interests_target_id_collapsible'
][
'#title'
]
=
$vocab_label
;
}
}
}
if
(
count
(
$form
[
'field_other_target_id'
][
'#options'
])
==
0
)
{
$form
[
'field_other_target_id'
][
'#access'
]
=
FALSE
;
$form
[
'field_other_target_id_collapsible'
][
'#access'
]
=
FALSE
;
}
else
{
$tid
=
array_shift
(
array_keys
(
$form
[
'field_other_target_id'
][
'#options'
]));
$term
=
Term
::
load
(
$tid
);
if
(
!
empty
(
$term
))
{
$vid
=
array_shift
(
$term
->
vid
->
getValue
())[
'target_id'
];
if
(
!
empty
(
$vid
))
{
$vocab
=
Vocabulary
::
load
(
$vid
);
$vocab_label
=
$vocab
->
get
(
'name'
);
$form
[
'field_other_target_id_collapsible'
][
'#title'
]
=
$vocab_label
;
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment