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