Skip to content

Commit

Permalink
MDL-21695 Got rid of the last call of setHelpButton()
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrd8mz committed Aug 16, 2010
1 parent ed14ad0 commit cde9bee
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 19 deletions.
11 changes: 0 additions & 11 deletions lang/en/help/portfolio/boxnet_apikey.html

This file was deleted.

3 changes: 2 additions & 1 deletion lib/formslib.php
Expand Up @@ -1437,7 +1437,8 @@ function setHelpButtons($buttons, $suppresscheck=false, $function='helpbutton'){
*/
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');
}
Expand Down
1 change: 0 additions & 1 deletion portfolio/boxnet/lang/en/portfolio_boxnet.php
Expand Up @@ -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';
Expand Down
6 changes: 0 additions & 6 deletions portfolio/boxnet/lib.php
Expand Up @@ -110,12 +110,6 @@ public function admin_config_form(&$mform) {
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'));

Expand Down

0 comments on commit cde9bee

Please sign in to comment.