Skip to content
Snippets Groups Projects
Commit 6f8a3859 authored by Lily Yan's avatar Lily Yan Committed by Eric Bremner
Browse files

ISTWCMS-6195 Refactor generic nolink/button link field function in...

ISTWCMS-6195 Refactor generic nolink/button link field function in uw_cfg_common.module, using custom description for timeline link field
parent 294a5671
No related branches found
No related tags found
1 merge request!314ISTWCMS-6195 Refactor generic nolink/button link field function in uw_cfg_common.module
......@@ -1804,6 +1804,11 @@ function uw_cfg_common_field_widget_single_element_link_default_form_alter(array
if ($field_definition->getName() == 'field_uw_event_host') {
$element['uri']['#description'] .= ' ' . t('Enter <nolink> to display link text only.');
}
// Set custom description only for timeline link field.
if ($field_definition->getName() == 'field_uw_timeline_link') {
$element['uri']['#description'] = t('Links the entire content to a URL. If entered, do not use links inside the content itself.') . ' ' . $element['uri']['#description'];
}
}
// Add link uri field element validation function.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment