original_string: public function confirmunpublishing($publication) {
          $optionsyes = array('sesskey' => sesskey(), 'id' => $publication->courseid,
              'hubcourseid' => $publication->hubcourseid,
              'cancel' => true, 'publicationid' => $publication->id, 'confirm' => true);
          $optionsno = array('sesskey' => sesskey(), 'id' => $publication->courseid);
          $publication->hubname = html_writer::tag('a', 'Moodle.net',
              array('href' => HUB_MOODLEORGHUBURL));
          $formcontinue = new single_button(new moodle_url("/course/publish/index.php",
              $optionsyes), get_string('unpublish', 'hub'), 'post');
          $formcancel = new single_button(new moodle_url("/course/publish/index.php",
              $optionsno), get_string('cancel'), 'get');
          return $this->output->confirm(get_string('unpublishconfirmation', 'hub', $publication),
              $formcontinue, $formcancel);
      }
code: public function confirmunpublishing($publication) {
          $optionsyes = array('sesskey' => sesskey(), 'id' => $publication->courseid,
              'hubcourseid' => $publication->hubcourseid,
              'cancel' => true, 'publicationid' => $publication->id, 'confirm' => true);
          $optionsno = array('sesskey' => sesskey(), 'id' => $publication->courseid);
          $publication->hubname = html_writer::tag('a', 'Moodle.net',
              array('href' => HUB_MOODLEORGHUBURL));
          $formcontinue = new single_button(new moodle_url("/course/publish/index.php",
              $optionsyes), get_string('unpublish', 'hub'), 'post');
          $formcancel = new single_button(new moodle_url("/course/publish/index.php",
              $optionsno), get_string('cancel'), 'get');
          return $this->output->confirm(get_string('unpublishconfirmation', 'hub', $publication),
              $formcontinue, $formcancel);
      }
code_tokens: public function confirmunpublishing ( $ publication ) { $ optionsyes = array ( 'sesskey' => sesskey ( ) , 'id' => $ publication -> courseid , 'hubcourseid' => $ publication -> hubcourseid , 'cancel' => true , 'publicationid' => $ publication -> id , 'confirm' => true ) ; $ optionsno = array ( 'sesskey' => sesskey ( ) , 'id' => $ publication -> courseid ) ; $ publication -> hubname = html_writer :: tag ( 'a' , 'Moodle.net' , array ( 'href' => HUB_MOODLEORGHUBURL ) ) ; $ formcontinue = new single_button ( new moodle_url ( "/course/publish/index.php" , $ optionsyes ) , get_string ( 'unpublish' , 'hub' ) , 'post' ) ; $ formcancel = new single_button ( new moodle_url ( "/course/publish/index.php" , $ optionsno ) , get_string ( 'cancel' ) , 'get' ) ; return $ this -> output -> confirm ( get_string ( 'unpublishconfirmation' , 'hub' , $ publication ) , $ formcontinue , $ formcancel ) ; }
docstring: Display unpublishing confirmation page
  @param stdClass $publication
  $publication->courseshortname
  $publication->courseid
  $publication->hubname
  $publication->huburl
  $publication->id
docstring_tokens: Display unpublishing confirmation page