mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-21695 Got rid of the last call of setHelpButton()
This commit is contained in:
parent
ed14ad026c
commit
cde9bee874
@ -1,11 +0,0 @@
|
||||
<h2>Box.net API Key</h2>
|
||||
<p>Visit <a href="http://enabled.box.net">enabled.box.net</a> and register a
|
||||
developer account. You can then navigate to My projects, and create a new one.</p>
|
||||
|
||||
<p>For all the settings, Moodle doesn't care what you put in except for the
|
||||
callback url, which should be:<br />
|
||||
<b>$CFG->wwwroot/portfolio/add.php?postcontrol=1&type=boxnet.</b></p>
|
||||
|
||||
<p>Box.net will append the relevant authentication tokens to the url (detecting
|
||||
it already contains ? and everything already) </p>
|
||||
|
@ -1437,7 +1437,8 @@ class MoodleQuickForm extends HTML_QuickForm_DHTMLRulesTableless {
|
||||
*/
|
||||
function setHelpButton($elementname, $buttonargs, $suppresscheck=false, $function='helpbutton'){
|
||||
global $OUTPUT;
|
||||
//TODO: obsolete this function completely
|
||||
|
||||
debugging('function moodle_form::setHelpButton() is deprecated');
|
||||
if ($function !== 'helpbutton') {
|
||||
//debugging('parameter $function in moodle_form::setHelpButton() is not supported any more');
|
||||
}
|
||||
|
@ -24,7 +24,6 @@
|
||||
*/
|
||||
|
||||
$string['apikey'] = 'API key';
|
||||
$string['apikeyhelp'] = 'You need to get this by signing up to box.net as a developer and adding an application. The callback url must be yourwwwroot/portfolio/add.php?postcontrol=1&type=boxnet';
|
||||
$string['apikeyinlinehelp'] = '<p>To configure Box.net, visit the developer page at <a href="http://www.box.net/developers/services">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'] = 'No API Key';
|
||||
$string['err_noapikey_help'] = 'There is no API Key configured for this plugin. You can get one of these from http://enabled.box.net';
|
||||
|
@ -110,12 +110,6 @@ class portfolio_plugin_boxnet extends portfolio_plugin_push_base {
|
||||
global $CFG;
|
||||
$strrequired = get_string('required');
|
||||
$mform->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');
|
||||
$mform->addElement('warning', 'apikeyhelp', 'smalltext', get_string('apikeyinlinehelp', 'portfolio_boxnet', $CFG->wwwroot . '/portfolio/add.php?postcontrol=1&type=boxnet'));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user