]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16519 - added some more help text to box.net config page
authormjollnir_ <mjollnir_>
Tue, 16 Sep 2008 13:01:34 +0000 (13:01 +0000)
committermjollnir_ <mjollnir_>
Tue, 16 Sep 2008 13:01:34 +0000 (13:01 +0000)
lang/en_utf8/portfolio_boxnet.php
portfolio/type/boxnet/lib.php

index 1c22963a763d73939c9d86d588265e1a1582bfbc..853ad9b55930043ce5556d61222084392f1f818b 100644 (file)
@@ -2,6 +2,7 @@
 
 $string['apikey'] = 'API key';
 $string['apikeyhelp'] = 'You need to get this by signing up to enabled.box.net and adding an application.  The callback url must be yourwwwroot/portfolio/add.php?postcontrol=1';
+$string['apikeyinlinehelp'] = '<p>To configure Box.net, visit <a href=\"http://enabled.box.net/my-projects\">enabled.box.net</a> and log in.</p><p>Under My Projects you will need to create one new project for each Moodle site.</p><p>The only setting that matters is the callback url, which should be $a. You can put anything you like for the other settings. Save it and you\'re done!';
 $string['err_noapikey'] = 'There is no API Key configured for this plugin.  You can get one of these from http://enabled.box.net';
 $string['existingfolder'] = 'Exiting folder to put file(s) into';
 $string['folderclash'] = 'The folder you asked to create already exists!';
index ef1a3312167f644c98cf274726cdbe30971ebd24..91668a82f0367f9bd45b634fcd144122a8e32556 100644 (file)
@@ -116,6 +116,8 @@ class portfolio_plugin_boxnet extends portfolio_plugin_push_base {
         );
         $mform->setHelpButton('apikey', $helpparams);
         $mform->addRule('apikey', $strrequired, 'required', null, 'client');
+        $mform->addElement('warning', 'apikeyhelp', 'smalltext', get_string('apikeyinlinehelp', 'portfolio_boxnet', $CFG->wwwroot . '/portfolio/add.php?postcontrol=1'));
+
     }
 
     public function steal_control($stage) {