original_string: protected function add_page_delete_options($pages, $swid, &$table) {
          global $OUTPUT;
          foreach ($pages as $page) {
              $link = wiki_parser_link($page->title, array('swid' => $swid));
              $class = ($link['new']) ? 'class="wiki_newentry"' : '';
              $pagelink = '<a href="' . $link['url'] . '"' . $class . '>' . format_string($link['content']) . '</a>';
              $urledit = new moodle_url('/mod/wiki/edit.php', array('pageid' => $page->id, 'sesskey' => sesskey()));
              $urldelete = new moodle_url('/mod/wiki/admin.php', array(
                                                                     'pageid'  => $this->page->id,
                                                                     'delete'  => $page->id,
                                                                     'option'  => $this->view,
                                                                     'listall' => !$this->listorphan?'1': '',
                                                                     'sesskey' => sesskey()));
  
              $editlinks = $OUTPUT->action_icon($urledit, new pix_icon('t/edit', get_string('edit')));
              $editlinks .= $OUTPUT->action_icon($urldelete, new pix_icon('t/delete', get_string('delete')));
              $table->data[] = array($editlinks, $pagelink);
          }
      }
code: protected function add_page_delete_options($pages, $swid, &$table) {
          global $OUTPUT;
          foreach ($pages as $page) {
              $link = wiki_parser_link($page->title, array('swid' => $swid));
              $class = ($link['new']) ? 'class="wiki_newentry"' : '';
              $pagelink = '<a href="' . $link['url'] . '"' . $class . '>' . format_string($link['content']) . '</a>';
              $urledit = new moodle_url('/mod/wiki/edit.php', array('pageid' => $page->id, 'sesskey' => sesskey()));
              $urldelete = new moodle_url('/mod/wiki/admin.php', array(
                                                                     'pageid'  => $this->page->id,
                                                                     'delete'  => $page->id,
                                                                     'option'  => $this->view,
                                                                     'listall' => !$this->listorphan?'1': '',
                                                                     'sesskey' => sesskey()));
  
              $editlinks = $OUTPUT->action_icon($urledit, new pix_icon('t/edit', get_string('edit')));
              $editlinks .= $OUTPUT->action_icon($urldelete, new pix_icon('t/delete', get_string('delete')));
              $table->data[] = array($editlinks, $pagelink);
          }
      }
code_tokens: protected function add_page_delete_options ( $ pages , $ swid , & $ table ) { global $ OUTPUT ; foreach ( $ pages as $ page ) { $ link = wiki_parser_link ( $ page -> title , array ( 'swid' => $ swid ) ) ; $ class = ( $ link [ 'new' ] ) ? 'class="wiki_newentry"' : '' ; $ pagelink = '<a href="' . $ link [ 'url' ] . '"' . $ class . '>' . format_string ( $ link [ 'content' ] ) . '</a>' ; $ urledit = new moodle_url ( '/mod/wiki/edit.php' , array ( 'pageid' => $ page -> id , 'sesskey' => sesskey ( ) ) ) ; $ urldelete = new moodle_url ( '/mod/wiki/admin.php' , array ( 'pageid' => $ this -> page -> id , 'delete' => $ page -> id , 'option' => $ this -> view , 'listall' => ! $ this -> listorphan ? '1' : '' , 'sesskey' => sesskey ( ) ) ) ; $ editlinks = $ OUTPUT -> action_icon ( $ urledit , new pix_icon ( 't/edit' , get_string ( 'edit' ) ) ) ; $ editlinks .= $ OUTPUT -> action_icon ( $ urldelete , new pix_icon ( 't/delete' , get_string ( 'delete' ) ) ) ; $ table -> data [ ] = array ( $ editlinks , $ pagelink ) ; } }
docstring: helper function for print_delete_content. This will add data to the table.
  
  @global object $OUTPUT
  @param array $pages objects of wiki pages in subwiki
  @param int $swid id of subwiki
  @param object $table reference to the table in which data needs to be added
docstring_tokens: helper function for print_delete_content . This will add data to the table .