From f3176e8ec55ca158fd4efb7dad02fdde38bad4e9 Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Fri, 23 Jul 2021 13:56:41 +0800 Subject: [PATCH] MDL-72045 calendar: change export doc link by help text --- calendar/classes/export_form.php | 5 ++--- lang/en/calendar.php | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/calendar/classes/export_form.php b/calendar/classes/export_form.php index 18e637bec8d..9ca1d89569c 100644 --- a/calendar/classes/export_form.php +++ b/calendar/classes/export_form.php @@ -42,10 +42,9 @@ class core_calendar_export_form extends moodleform { * @throws coding_exception */ public function definition() { - global $CFG, $OUTPUT; + global $CFG; $mform = $this->_form; - - $mform->addElement('html', $OUTPUT->doc_link('calendar/export', get_string('exporthelp', 'calendar'), true)); + $mform->addElement('html', '
' . get_string('exporthelp', 'calendar') . '
'); $export = array(); $export[] = $mform->createElement('radio', 'exportevents', '', get_string('eventsall', 'calendar'), 'all'); diff --git a/lang/en/calendar.php b/lang/en/calendar.php index f987fe1b3d1..dc35ce92d7a 100644 --- a/lang/en/calendar.php +++ b/lang/en/calendar.php @@ -143,7 +143,8 @@ $string['eventsubscriptioneditwarning'] = 'This calendar event is part of a subs $string['expired'] = 'Expired'; $string['explain_site_timeformat'] = 'You can choose to see times in either 12 or 24 hour format for the whole site. If you choose "default", then the format will be automatically chosen according to the language you use in the site. This setting can be overridden by user preferences.'; $string['export'] = 'Export'; -$string['exporthelp'] = 'How do I subscribe to this calendar from a calendar application (Google/Outlook/Other)?'; +$string['exporthelp'] = '

The calendar URL provides a dynamic link for importing events into other calendars. Any new, changed or deleted events in the source calendar will be reflected in the other calendars.

+

The calendar export allows you to create a backup copy of events, which may be imported into other calendars. Updates made in the source calendar will not be reflected in the other calendars.

'; $string['exportbutton'] = 'Export'; $string['exportcalendar'] = 'Export calendar'; $string['forcecalendartype'] = 'Force calendar';