add hooks (pre|post)DocumentInfos

This commit is contained in:
Uwe Steinmann 2015-08-07 10:13:47 +02:00
parent 0eaf06a75f
commit 421bf3e81a

View File

@ -184,6 +184,9 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
<?php
$this->contentHeading(getMLText("document_infos"));
$this->contentContainerStart();
$txt = $this->callHook('preDocumentInfos', $document);
if(is_string($txt))
echo $txt;
$txt = $this->callHook('documentInfos', $document);
if(is_string($txt))
echo $txt;
@ -302,6 +305,9 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
</table>
<?php
}
$txt = $this->callHook('postDocumentInfos', $document);
if(is_string($txt))
echo $txt;
$this->contentContainerEnd();
?>
</div>