Skip to content
Snippets Groups Projects

ISTWCMS-6274: fixing help text for google maps block

Merged Eric Bremner requested to merge feature/ISTWCMS-6274-ebremner-fix-google-maps into 1.1.x
+ 7
1
@@ -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'] = t('Google Maps starts with https://www.google.com/maps/embed?pb=<br>Google My Maps starts with https://www.google.com/maps/d/u/1/embed?mid=');
}
// Set custom description only for event host field.
if ($field_definition->getName() == 'field_uw_event_host') {
$element['uri']['#description'] .= ' ' . t('Enter &lt;nolink&gt; to display link text only.');
Loading