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

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']);

View File

@ -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:';