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

ISTWCMS-6274: fixing help text for google maps block

parent bd540621
No related branches found
No related tags found
1 merge request!328ISTWCMS-6274: fixing help text for google maps block
......@@ -1888,10 +1888,16 @@ function uw_cfg_common_field_widget_single_element_link_default_form_alter(array
if ($field_definition->getName() == 'field_uw_event_map') {
$element['uri']['#description'] = t('Optional: provide a link to a map with the event location (e.g. https://uwaterloo.ca/map/). This must be an external URL such as https://example.com.');
}
elseif ($field_definition->getName() != 'field_gmaps_embedded_url') {
else {
// Set custom description for all link fields except event map.
$element['uri']['#description'] = t('Start typing the title of a piece of content to select it. You can also enter an internal path such as /blog or an external URL such as https://example.com. Enter <front> to link to the front page.');
// Set custom description for google maps.
if ($field_definition->getName() == 'field_gmaps_embedded_url') {
$element['uri']['#description'] = 'Google Maps starts with https://www.google.com/maps/embed?pb=';
}
// Set custom description only for event host field.
if ($field_definition->getName() == 'field_uw_event_host') {
$element['uri']['#description'] .= ' ' . t('Enter <nolink> to display link text only.');
......
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