MDL-21695 Got rid of the last call of setHelpButton()

This commit is contained in:
David Mudrak 2010-08-16 14:32:43 +00:00
parent ed14ad026c
commit cde9bee874
4 changed files with 2 additions and 19 deletions

View File

@ -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-&gt;wwwroot/portfolio/add.php?postcontrol=1&amp;type=boxnet.</b></p>
<p>Box.net will append the relevant authentication tokens to the url (detecting
it already contains ? and everything already) </p>

View File

@ -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');
}

View File

@ -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';

View File

@ -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'));