publish MDL-19315 course url is now not editable, change advertise/share for enrollable/downloadable

This commit is contained in:
jerome mouneyrac 2010-05-06 07:03:04 +00:00
parent f83b3b13f3
commit 99fbb74ebd
2 changed files with 11 additions and 12 deletions

View File

@ -118,10 +118,9 @@ class course_publication_form extends moodleform {
$buttonlabel = get_string('advertiseon', 'hub', !empty($hubname)?$hubname:$huburl);
$mform->addElement('hidden', 'advertise', $advertise);
$mform->addElement('text', 'courseurl', get_string('courseurl', 'hub'));
$mform->addElement('static', 'courseurl', get_string('courseurl', 'hub'));
$mform->setType('courseurl', PARAM_URL);
$mform->setDefault('courseurl', new moodle_url("/course/view.php?id=".$course->id));
$mform->addHelpButton('courseurl', 'courseurl', 'hub');
}
$mform->addElement('text', 'courseshortname',get_string('courseshortname', 'hub'));

View File

@ -25,11 +25,11 @@
*/
$string['addedtoblock'] = 'Course added to block';
$string['advertise'] = 'Advertise';
$string['advertiseon'] = 'Advertise on {$a}';
$string['advertiseonhub'] = 'Advertise on hub';
$string['advertiseonmoodleorg'] = 'Advertise on Moodle.org';
$string['advertiseonspecifichub'] = 'Advertise on a specific hub';
$string['advertise'] = 'Publish as enrollable';
$string['advertiseon'] = 'Publish as enrollable on {$a}';
$string['advertiseonhub'] = 'Publish as enrollable on hub';
$string['advertiseonmoodleorg'] = 'Publish as enrollable on Moodle.org';
$string['advertiseonspecifichub'] = 'Publish as enrollable on a specific hub';
$string['all'] = 'All';
$string['allowglobalsearch'] = 'Publish this hub and allow global search of all courses';
$string['allowpublicsearch'] = 'Publish this hub so people can join it';
@ -145,11 +145,11 @@ $string['selecthub'] = 'Select hub';
$string['sendfollowinginfo'] = 'Send the following information:';
$string['settings'] = 'Settings';
$string['settingsupdated'] = 'Settings have been updated.';
$string['share'] = 'Share';
$string['shareon'] = 'Share on {$a}';
$string['shareonhub'] = 'Share on hub';
$string['shareonmoodleorg'] = 'Share on Moodle.org';
$string['shareonspecifichub'] = 'Share on a specific hub';
$string['share'] = 'Publish as downloadable';
$string['shareon'] = 'Publish as downloadable on {$a}';
$string['shareonhub'] = 'Publish as downloadable on hub';
$string['shareonmoodleorg'] = 'Publish as downloadable on Moodle.org';
$string['shareonspecifichub'] = 'Publish as downloadable on a specific hub';
$string['siteadmin'] = 'Administrator';
$string['sitecreated'] = 'Site created';
$string['sitedesc'] = 'Description';