mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-07-15 08:58:10 +00:00
call new hook 'documentPreview'
This commit is contained in:
parent
7a674b9162
commit
341aa12a05
|
@ -318,6 +318,9 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
||||||
|
|
||||||
$latestContent = $document->getLatestContent();
|
$latestContent = $document->getLatestContent();
|
||||||
$txt = $this->callHook('preDocumentPreview', $latestContent);
|
$txt = $this->callHook('preDocumentPreview', $latestContent);
|
||||||
|
if(is_string($txt))
|
||||||
|
echo $txt;
|
||||||
|
$txt = $this->callHook('documentPreview', $latestContent);
|
||||||
if(is_string($txt))
|
if(is_string($txt))
|
||||||
echo $txt;
|
echo $txt;
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user