Skip to content

Commit

Permalink
MDL-58142 calendar: Add an obvious link to the help docs
Browse files Browse the repository at this point in the history
Part of MDL-58220
  • Loading branch information
Damyon Wiese committed Apr 3, 2017
1 parent 5823a27 commit 1a1a09d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion calendar/classes/export_form.php
Expand Up @@ -42,9 +42,11 @@ class core_calendar_export_form extends moodleform {
* @throws coding_exception
*/
public function definition() {
global $CFG;
global $CFG, $OUTPUT;
$mform = $this->_form;

$mform->addElement('html', '<p>' . $OUTPUT->doc_link('calendar/export', get_string('exporthelp', 'calendar'), true) . '</p>');

$export = array();
$export[] = $mform->createElement('radio', 'exportevents', '', get_string('eventsall', 'calendar'), 'all');
$export[] = $mform->createElement('radio', 'exportevents', '', get_string('eventsrelatedtocourses', 'calendar'), 'courses');
Expand Down
1 change: 1 addition & 0 deletions calendar/export.php
Expand Up @@ -169,4 +169,5 @@
echo $calendarurl;

echo $renderer->complete_layout();

echo $OUTPUT->footer();
1 change: 1 addition & 0 deletions lang/en/calendar.php
Expand Up @@ -117,6 +117,7 @@
$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['exportbutton'] = 'Export';
$string['exportcalendar'] = 'Export calendar';
$string['forcecalendartype'] = 'Force calendar';
Expand Down

0 comments on commit 1a1a09d

Please sign in to comment.