diff options
author | M.Dent <dentm42@dm42.net> | 2018-10-10 22:46:00 -0400 |
---|---|---|
committer | M.Dent <dentm42@dm42.net> | 2018-10-10 22:46:00 -0400 |
commit | bad4ea6e65a45ac2523a9a7c2ec624ad2535b652 (patch) | |
tree | 07ff89a65656efd718284693a7a50f6c41c149b2 /Zotlabs/Module/Wiki.php | |
parent | 802ccdff4ade258f09fd3dca4ff4aa63cf5f9ac6 (diff) | |
download | volse-hubzilla-bad4ea6e65a45ac2523a9a7c2ec624ad2535b652.tar.gz volse-hubzilla-bad4ea6e65a45ac2523a9a7c2ec624ad2535b652.tar.bz2 volse-hubzilla-bad4ea6e65a45ac2523a9a7c2ec624ad2535b652.zip |
Add wiki_preprocess hook and documentation
Diffstat (limited to 'Zotlabs/Module/Wiki.php')
-rw-r--r-- | Zotlabs/Module/Wiki.php | 4 |
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') { |