From 89e12bd5a68918d20e4a7874b457316d5716bccc Mon Sep 17 00:00:00 2001 From: mjollnir_ Date: Fri, 5 Sep 2008 12:39:17 +0000 Subject: [PATCH] MDL-16353 - help for boxnet portfolio plugin admin config --- lang/en_utf8/help/portfolio/boxnet_apikey.html | 5 +++++ lang/en_utf8/portfolio_boxnet.php | 3 ++- portfolio/type/boxnet/lib.php | 7 +++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 lang/en_utf8/help/portfolio/boxnet_apikey.html diff --git a/lang/en_utf8/help/portfolio/boxnet_apikey.html b/lang/en_utf8/help/portfolio/boxnet_apikey.html new file mode 100644 index 0000000000..a1d2febfd7 --- /dev/null +++ b/lang/en_utf8/help/portfolio/boxnet_apikey.html @@ -0,0 +1,5 @@ +

Box.net API Key

+

Visit enabled.box.net and register a developer account. You can then navigate to My projects, and create a new one.

+

For all the settings, Moodle doesn't care what you put in except for the callback url, which should be $CFG->wwwroot/portfolio/add.php?postcontrol=1.

+

Box.net will append the relevant authentication tokens to the url (detecting it already contains ? and everything already)

+ diff --git a/lang/en_utf8/portfolio_boxnet.php b/lang/en_utf8/portfolio_boxnet.php index 783d347ede..077d54c927 100644 --- a/lang/en_utf8/portfolio_boxnet.php +++ b/lang/en_utf8/portfolio_boxnet.php @@ -1,6 +1,7 @@ addElement('text', 'apikey', get_string('apikey', 'portfolio_boxnet')); + $helpparams = array( + 'boxnet_apikey', + get_string('apikeyhelp', 'portfolio_boxnet'), + 'portfolio', + ); + $mform->setHelpButton('apikey', $helpparams); $mform->addRule('apikey', $strrequired, 'required', null, 'client'); } -- 2.39.5