adding some strings
[moodle-linuxchix.git] / mod / wiki / ewiki / plugins / aview / backlinks.php
blob110dbaf477ea088f7db2e219b18d602b9f670680
1 <?php
4 # this plugin prints the "pages linking to" below a page (the same
5 # information the "links/" action does)
7 # altered to use ewiki_get_backlinks() by AndyFundinger.
9 $ewiki_plugins["view_append"][] = "ewiki_view_append_backlinks";
11 function ewiki_view_append_backlinks($id, $data, $action) {
12 $pages = ewiki_get_backlinks($id);
14 $o="";
15 foreach ($pages as $id) {
16 $o .= ' <a href="'.ewiki_script("",$id).'">'.$id.'</a>';
18 ($o) && ($o = "<div class=\"wiki_backlinks\"><small>".get_string('backlinks', 'wiki').":</small><br />$o</div>\n");
20 return($o);