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);
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");
b'\\ No newline at end of file'