aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Wiki.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2018-10-11 11:42:00 +0200
committerMario <mario@mariovavti.com>2018-10-11 11:42:00 +0200
commit4756826054fa26b08361437add194b2f97285eb1 (patch)
treeb67b715b56b47429e8e969ff7358fdbee1d644f4 /Zotlabs/Module/Wiki.php
parentea309aa19e454a47762fef942fecaeb16b458dff (diff)
parentbad4ea6e65a45ac2523a9a7c2ec624ad2535b652 (diff)
downloadvolse-hubzilla-4756826054fa26b08361437add194b2f97285eb1.tar.gz
volse-hubzilla-4756826054fa26b08361437add194b2f97285eb1.tar.bz2
volse-hubzilla-4756826054fa26b08361437add194b2f97285eb1.zip
Merge branch 'dev' into 'dev'
Add wiki_preprocess hook and documentation See merge request hubzilla/core!1326
Diffstat (limited to 'Zotlabs/Module/Wiki.php')
-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') {