aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorM.Dent <dentm42@dm42.net>2018-10-11 02:46:00 +0000
committerMario <mario@mariovavti.com>2018-10-11 11:42:29 +0200
commit4d86a199f0d10a49d0d0cc4da7f19b6d4bde1ba6 (patch)
treeff019a044d3f4d8767e546cf56a7f93f9ad40696 /Zotlabs/Module
parentcf4288767a7920dda0c68d5e8c8af5ef7d8753d6 (diff)
downloadvolse-hubzilla-4d86a199f0d10a49d0d0cc4da7f19b6d4bde1ba6.tar.gz
volse-hubzilla-4d86a199f0d10a49d0d0cc4da7f19b6d4bde1ba6.tar.bz2
volse-hubzilla-4d86a199f0d10a49d0d0cc4da7f19b6d4bde1ba6.zip
Add wiki_preprocess hook and documentation
(cherry picked from commit bad4ea6e65a45ac2523a9a7c2ec624ad2535b652)
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Wiki.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/Zotlabs/Module/Wiki.php b/Zotlabs/Module/Wiki.php
index 25823da62..05d6e85cd 100644
--- a/Zotlabs/Module/Wiki.php
+++ b/Zotlabs/Module/Wiki.php
@@ -331,6 +331,10 @@ class Wiki extends Controller {
$sampleContent = t('New page');
$content = (($p['content'] == '') ? $sampleContent : $p['content']);
+
+ $hookinfo = ['content' => $content, 'mimetype' => $mimeType];
+ call_hooks('wiki_preprocess',$hookinfo);
+ $content = $hookinfo['content'];
// Render the Markdown-formatted page content in HTML
if($mimeType == 'text/bbcode') {