publication MDL-19315 add informative text to the hub selector page + select Moodle.org by default

This commit is contained in:
jerome mouneyrac
2010-05-19 07:39:52 +00:00
parent 3f106c06c7
commit e2ed692db3
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -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']);