aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorM.Dent <dentm42@dm42.net>2018-10-10 22:46:00 -0400
committerM.Dent <dentm42@dm42.net>2018-10-10 22:46:00 -0400
commitbad4ea6e65a45ac2523a9a7c2ec624ad2535b652 (patch)
tree07ff89a65656efd718284693a7a50f6c41c149b2 /doc
parent802ccdff4ade258f09fd3dca4ff4aa63cf5f9ac6 (diff)
downloadvolse-hubzilla-bad4ea6e65a45ac2523a9a7c2ec624ad2535b652.tar.gz
volse-hubzilla-bad4ea6e65a45ac2523a9a7c2ec624ad2535b652.tar.bz2
volse-hubzilla-bad4ea6e65a45ac2523a9a7c2ec624ad2535b652.zip
Add wiki_preprocess hook and documentation
Diffstat (limited to 'doc')
-rw-r--r--doc/hook/wiki_preprocess.bb11
-rw-r--r--doc/hooklist.bb3
2 files changed, 14 insertions, 0 deletions
diff --git a/doc/hook/wiki_preprocess.bb b/doc/hook/wiki_preprocess.bb
new file mode 100644
index 000000000..913b601ba
--- /dev/null
+++ b/doc/hook/wiki_preprocess.bb
@@ -0,0 +1,11 @@
+[h3]wiki_preprocess[/h3]
+
+Called before markdown/bbcode processors are run for wiki pages
+
+Passed parameter array:
+
+ 'content' => wiki page content
+ 'mimetype' => page mimetype
+
+
+see: Zotlabs/Module/Wiki.php
diff --git a/doc/hooklist.bb b/doc/hooklist.bb
index d493e4feb..d104df380 100644
--- a/doc/hooklist.bb
+++ b/doc/hooklist.bb
@@ -625,6 +625,9 @@ Hooks allow plugins/addons to "hook into" the code at many points and alter the
[zrl=[baseurl]/help/hook/well_known]well_known[/zrl]
Called when accessing the '.well-known' special site addresses
+[zrl=[baseurl]/help/hook/wiki_preprocess]wiki_preprocess[/zrl]
+ Called before markdown/bbcode processors are run for wiki pages
+
[zrl=[baseurl]/help/hook/zot_best_algorithm]zot_best_algorithm[/zrl]
Called when negotiating crypto algorithms with remote sites