diff --git a/course/publish/forms.php b/course/publish/forms.php index a91b62bd02d..7085a812aaa 100644 --- a/course/publish/forms.php +++ b/course/publish/forms.php @@ -45,6 +45,8 @@ class hub_publish_selector_form extends moodleform { $mform->addElement('header', 'site', get_string('selecthub', 'hub')); + $mform->addElement('static', 'info', '', get_string('selecthubinfo', 'hub').html_writer::empty_tag('br')); + $hubmanager = new hub(); $registeredhubs = $hubmanager->get_registered_on_hubs(); @@ -58,6 +60,9 @@ class hub_publish_selector_form extends moodleform { $hubname = $hub->huburl; } $mform->addElement('radio','huburl',null,' '.$hubname, $hub->huburl); + if ($hub->huburl == MOODLEORGHUBURL) { + $mform->setDefault('huburl', $hub->huburl); + } } $mform->addElement('hidden', 'id', $this->_customdata['id']); diff --git a/lang/en/hub.php b/lang/en/hub.php index c8a3b4350ad..3b10754ffe0 100644 --- a/lang/en/hub.php +++ b/lang/en/hub.php @@ -154,6 +154,7 @@ $string['screenshots'] = 'Screenshots'; $string['screenshots_help'] = 'Screenshots will displayed during search results.'; $string['search'] = 'Search'; $string['selecthub'] = 'Select hub'; +$string['selecthubinfo'] = 'Please select the hub to publish on. A hub is a directory of Moodle sites and a directory of Moodle courses.'; $string['selecthubforadvertise'] = 'Select hub for advertising'; $string['selecthubforsharing'] = 'Select hub for uploading'; $string['sendfollowinginfo'] = 'Send the following information:';