original_string: public function user_reset_token_confirmation($token) {
          global $CFG;
          $managetokenurl = $CFG->wwwroot . "/user/managetoken.php?sesskey=" . sesskey();
          $optionsyes = array('tokenid' => $token->id, 'action' => 'resetwstoken', 'confirm' => 1,
              'sesskey' => sesskey());
          $optionsno = array('section' => 'webservicetokens', 'sesskey' => sesskey());
          $formcontinue = new single_button(new moodle_url($managetokenurl, $optionsyes),
                          get_string('reset'));
          $formcancel = new single_button(new moodle_url($managetokenurl, $optionsno),
                          get_string('cancel'), 'get');
          $html = $this->output->confirm(get_string('resettokenconfirm', 'webservice',
                                  (object) array('user' => $token->firstname . " " .
                                      $token->lastname, 'service' => $token->name)),
                          $formcontinue, $formcancel);
          return $html;
      }
code: public function user_reset_token_confirmation($token) {
          global $CFG;
          $managetokenurl = $CFG->wwwroot . "/user/managetoken.php?sesskey=" . sesskey();
          $optionsyes = array('tokenid' => $token->id, 'action' => 'resetwstoken', 'confirm' => 1,
              'sesskey' => sesskey());
          $optionsno = array('section' => 'webservicetokens', 'sesskey' => sesskey());
          $formcontinue = new single_button(new moodle_url($managetokenurl, $optionsyes),
                          get_string('reset'));
          $formcancel = new single_button(new moodle_url($managetokenurl, $optionsno),
                          get_string('cancel'), 'get');
          $html = $this->output->confirm(get_string('resettokenconfirm', 'webservice',
                                  (object) array('user' => $token->firstname . " " .
                                      $token->lastname, 'service' => $token->name)),
                          $formcontinue, $formcancel);
          return $html;
      }
code_tokens: public function user_reset_token_confirmation ( $ token ) { global $ CFG ; $ managetokenurl = $ CFG -> wwwroot . "/user/managetoken.php?sesskey=" . sesskey ( ) ; $ optionsyes = array ( 'tokenid' => $ token -> id , 'action' => 'resetwstoken' , 'confirm' => 1 , 'sesskey' => sesskey ( ) ) ; $ optionsno = array ( 'section' => 'webservicetokens' , 'sesskey' => sesskey ( ) ) ; $ formcontinue = new single_button ( new moodle_url ( $ managetokenurl , $ optionsyes ) , get_string ( 'reset' ) ) ; $ formcancel = new single_button ( new moodle_url ( $ managetokenurl , $ optionsno ) , get_string ( 'cancel' ) , 'get' ) ; $ html = $ this -> output -> confirm ( get_string ( 'resettokenconfirm' , 'webservice' , ( object ) array ( 'user' => $ token -> firstname . " " . $ token -> lastname , 'service' => $ token -> name ) ) , $ formcontinue , $ formcancel ) ; return $ html ; }
docstring: Display Reset token confirmation box
  
  @param stdClass $token token to reset
  @return string html
docstring_tokens: Display Reset token confirmation box