changed git call from https to git readonly
[atutor.git] / mods / wiki / plugins / edit / msg.php
1 <?php
2 /*
3    With this extension loaded you can inject a custom message on top
4    of the edit box. You simply set it by giving an "edit: ...." entry
5    within the meta data field (see plugins/meta/).
6 */
7
8
9 $ewiki_plugins["edit_form_final"][] = "ewiki_meta_edit_message";
10 function ewiki_meta_edit_message(&$o, $id, &$data, $action) {
11    if ($msg = $data["meta"]["meta"]["edit"][0]) {
12       $o = "<div class=\"system-message\">$msg</div>\n"
13          . $o;
14    }
15 }
16
17
18 ?>