1
0
mirror of https://github.com/moodle/moodle.git synced 2025-03-13 12:10:34 +01:00

22 lines
605 B
PHP
Raw Normal View History

2004-06-02 18:17:30 +00:00
<?php
#
# this plugin prints the "pages linking to" below a page (the same
# information the "links/" action does)
#
# altered to use ewiki_get_backlinks() by AndyFundinger.
$ewiki_plugins["view_append"][] = "ewiki_view_append_backlinks";
function ewiki_view_append_backlinks($id, $data, $action) {
$pages = ewiki_get_backlinks($id);
$o="";
foreach ($pages as $id) {
$o .= ' <a href="'.ewiki_script("",$id).'">'.$id.'</a>';
}
2004-09-12 14:41:49 +00:00
($o) && ($o = "<div class=\"wiki_backlinks\"><small>".get_string('backlinks', 'wiki').":</small><br />$o</div>\n");
2004-06-02 18:17:30 +00:00
return($o);
}
?>