Skip to content

Commit

Permalink
registration MDL-25261 trivial confirmation regitration page improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
mouneyrac committed Nov 17, 2010
1 parent 08d3898 commit 5bf7254
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion admin/registration/confirmregistration.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,17 @@
$registeredhub->hubname = $hubname;
$registrationmanager->update_registeredhub($registeredhub);

//display notficiation message
$notificationmessage = $OUTPUT->notification(
get_string('registrationconfirmedon', 'hub', $hublink), 'notifysuccess');

echo $notificationmessage;

//display continue button
$registrationpage = new moodle_url('/admin/registration/index.php');
$continuebutton = $OUTPUT->render(new single_button($registrationpage, get_string('continue', 'hub')));
$continuebutton = html_writer::tag('div', $continuebutton, array('class' => 'mdl-align'));
echo $continuebutton;

if (!extension_loaded('xmlrpc')) {
//display notice about xmlrpc
$xmlrpcnotification = $OUTPUT->doc_link('admin/environment/php_extension/xmlrpc', '');
Expand Down
2 changes: 1 addition & 1 deletion lang/en/hub.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
$string['registeronmoodleorg'] = 'Register with Moodle.org (MOOCH)';
$string['registeronspecifichub'] = 'Register with a specific hub';
$string['registrationconfirmed'] = 'Site registration confirmed';
$string['registrationconfirmedon'] = 'You are now registered on the hub {$a}. You are now able to publish courses to this hub, using the "Publish" link in course administration menus';
$string['registrationconfirmedon'] = 'You are now registered on the hub {$a}. You are now able to publish courses to this hub, using the "Publish" link in course administration menus.';
$string['registrationupdated'] = 'Registration has been updated.';
$string['registrationupdatedfailed'] = 'Registration update failed.';
$string['removefromhub'] = 'Remove from hub';
Expand Down

0 comments on commit 5bf7254

Please sign in to comment.