mirror of
https://github.com/moodle/moodle.git
synced 2025-03-13 12:10:34 +01:00
22 lines
605 B
PHP
Executable File
22 lines
605 B
PHP
Executable File
<?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>';
|
|
}
|
|
($o) && ($o = "<div class=\"wiki_backlinks\"><small>".get_string('backlinks', 'wiki').":</small><br />$o</div>\n");
|
|
|
|
return($o);
|
|
}
|
|
?>
|