Add wiki_preprocess hook and documentation

(cherry picked from commit bad4ea6e65)
This commit is contained in:
M.Dent
2018-10-11 02:46:00 +00:00
committed by Mario
parent cf4288767a
commit 4d86a199f0
4 changed files with 19 additions and 1 deletions

View File

@@ -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') {