Sure.
When the function is commented out (so it is not called), it looks like this:
/*Override signup form charbusch
function signup_form() {
global $CFG;
require_once($CFG->dirroot.'/auth/'.$this->authtype.'/signup_form.php');
return new login_signup_form(null, null, 'post', '', array('autocomplete'=>'on'));
}
*/
If you want to make changes to the signup form, for example adding some lang strings, you can uncomment that function so it looks like this:
/*Override signup form charbusch*/
function signup_form() {
global $CFG;
require_once($CFG->dirroot.'/auth/'.$this->authtype.'/signup_form.php');
return new login_signup_form(null, null, 'post', '', array('autocomplete'=>'on'));
}
As you can see, that function is now looking for a signup form under the auth/onlineconfirm folder. So you have to copy the signup_form.php from the login folder into the auth/onlinecomfirm.php folder. Now you can make changes to that file if you want. For example, we like to remind users not to re-register just because they forgot their username or password, so I add something like this at the top of the signup form:
$info = new stdClass();
$info->url = $CFG->wwwroot.'/local/faq/index.php?page=signup';
$info->forgot = $CFG->httpswwwroot.'/login/forgot_password.php';
$info->login = $CFG->httpswwwroot.'/login/index.php';
//added info
$mform->addElement('header', 'registerinfohead', get_string('registerinfohead', 'local_custom'), '');
$mform->addElement('static', 'registerinfo', '', get_string('registerinfo', 'local_custom', $info));
I have a local plugin called FAQ with faq pages, and I have a local plugin called Custom where I can add any added lang strings I might use throughout the site, like the lang string saying not to re-register but to go to the forgot password form instead...
Hope this helps.