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
uw_ct_profile
Commits
59755498
Commit
59755498
authored
Feb 23, 2021
by
Igor Biki
Browse files
ISTWCMS-4586 Code standards.
parent
461fd31f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
uw_ct_profile.module
uw_ct_profile.module
+0
-3
No files found.
uw_ct_profile.module
View file @
59755498
...
@@ -20,7 +20,6 @@ function uw_ct_profile_form_node_uw_ct_profile_form_alter(&$form, FormStateInter
...
@@ -20,7 +20,6 @@ function uw_ct_profile_form_node_uw_ct_profile_form_alter(&$form, FormStateInter
if
(
$form
[
'field_uw_ct_profile_contact'
][
'widget'
][
0
][
'target_id'
])
{
if
(
$form
[
'field_uw_ct_profile_contact'
][
'widget'
][
0
][
'target_id'
])
{
foreach
(
_uw_ct_profile_alter_fields
()
as
$profile_field
=>
$contact_field
)
{
foreach
(
_uw_ct_profile_alter_fields
()
as
$profile_field
=>
$contact_field
)
{
// $form[$profile_field]['widget'][0]['value']['#value'] = $contact->$contact_field->value;
$form
[
$profile_field
][
'widget'
][
0
][
'value'
][
'#attributes'
][
'readonly'
]
=
'readonly'
;
$form
[
$profile_field
][
'widget'
][
0
][
'value'
][
'#attributes'
][
'readonly'
]
=
'readonly'
;
}
}
}
}
...
@@ -70,5 +69,3 @@ function _uw_ct_profile_alter_fields(): array {
...
@@ -70,5 +69,3 @@ function _uw_ct_profile_alter_fields(): array {
'field_uw_ct_profile_title'
=>
'field_uw_ct_contact_title'
,
'field_uw_ct_profile_title'
=>
'field_uw_ct_contact_title'
,
];
];
}
}
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